mirror of
https://github.com/wmjordan/PDFPatcher.git
synced 2026-10-18 21:52:34 +08:00
43 lines
1.1 KiB
C#
43 lines
1.1 KiB
C#
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<PageLabel> PageLabels { get; private set; }
|
|
|
|
[XmlAttribute("压缩索引表和书签")]
|
|
public bool FullCompression { get; set; }
|
|
|
|
[XmlAttribute("统一页面方向")]
|
|
public bool UnifyPageOrientation { get; set; }
|
|
|
|
/// <summary>
|
|
/// 设置统一页面方向要旋转的页面。默认旋转横向的页面。
|
|
/// </summary>
|
|
[XmlAttribute("旋转源页面方向")]
|
|
public bool RotateVerticalPages { get; set; }
|
|
|
|
/// <summary>
|
|
/// 设置统一页面旋转页面的方向。默认为顺时针旋转。
|
|
/// </summary>
|
|
[XmlAttribute("旋转方向")]
|
|
public bool RotateAntiClockwise { get; set; }
|
|
|
|
protected DocumentOptions() {
|
|
FullCompression = true;
|
|
PageLabels = [];
|
|
ViewerPreferences = new ViewerOptions();
|
|
MetaData = new GeneralInfo();
|
|
}
|
|
}
|
|
} |