using System.Collections.Generic; using System.Xml.Serialization; using PDFPatcher.Model; namespace PDFPatcher { public abstract class DocumentOptions { [XmlElement("指定元数据")] public GeneralInfo MetaData { get; set; } [XmlElement("阅读器设置")] public ViewerOptions ViewerPreferences { get; set; } [XmlIgnore] internal List PageLabels { get; private set; } [XmlAttribute("压缩索引表和书签")] public bool FullCompression { get; set; } [XmlAttribute("统一页面方向")] public bool UnifyPageOrientation { get; set; } /// /// 设置统一页面方向要旋转的页面。默认旋转横向的页面。 /// [XmlAttribute("旋转源页面方向")] public bool RotateVerticalPages { get; set; } /// /// 设置统一页面旋转页面的方向。默认为顺时针旋转。 /// [XmlAttribute("旋转方向")] public bool RotateAntiClockwise { get; set; } protected DocumentOptions() { FullCompression = true; PageLabels = new List(); ViewerPreferences = new ViewerOptions(); MetaData = new GeneralInfo(); } } }