Files
PDFPatcher/App/Processor/InfoDocProcessor/RemoveZoomRateProcessor.cs
T
2021-12-24 20:35:03 +08:00

23 lines
571 B
C#

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
}
}