mirror of
https://github.com/wmjordan/PDFPatcher.git
synced 2026-10-18 21:52:34 +08:00
23 lines
568 B
C#
23 lines
568 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
|
|
}
|
|
}
|