using System; using System.Collections.Generic; using System.Text; namespace PDFPatcher.Processor { sealed class RemoveZoomRateProcessor : IInfoDocProcessor { #region IInfoDocProcessor 成员 public bool Process(System.Xml.XmlElement item) { var d = item.GetAttributeNode(Constants.DestinationAttributes.View); if (d != null && d.Value != Constants.DestinationAttributes.ViewType.XYZ) { d.Value = Constants.DestinationAttributes.ViewType.XYZ; } item.RemoveAttribute(Constants.Coordinates.ScaleFactor); return true; } #endregion } }