mirror of
https://github.com/wmjordan/PDFPatcher.git
synced 2026-10-18 13:42:28 +08:00
21 lines
515 B
C#
21 lines
515 B
C#
using System;
|
|
|
|
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
|
|
}
|
|
}
|