mirror of
https://github.com/wmjordan/PDFPatcher.git
synced 2026-10-23 08:48:39 +08:00
40 lines
1.1 KiB
C#
40 lines
1.1 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Text;
|
|
using System.Xml.Serialization;
|
|
|
|
namespace PDFPatcher
|
|
{
|
|
public class ExtractPageOptions
|
|
{
|
|
[XmlAttribute("保留文档属性")]
|
|
public bool KeepDocumentProperties { get; set; }
|
|
[XmlAttribute("保留文档书签")]
|
|
public bool KeepBookmarks { get; set; }
|
|
[XmlAttribute("删除无效书签")]
|
|
public bool RemoveOrphanBookmarks { get; set; }
|
|
[XmlAttribute("解除文档限制")]
|
|
public bool RemoveDocumentRestrictions { get; set; }
|
|
[XmlAttribute("添加编号")]
|
|
public bool NumberFileNames { get; set; }
|
|
[XmlAttribute("拆分方式")]
|
|
public int SeparatingMode { get; set; }
|
|
[XmlAttribute("按页数拆分")]
|
|
public int SeperateByPage { get; set; }
|
|
|
|
[XmlIgnore]
|
|
public string PageRanges { get; set; }
|
|
[XmlIgnore]
|
|
public string ExcludePageRanges { get; set; }
|
|
|
|
public ExtractPageOptions() {
|
|
KeepBookmarks = true;
|
|
KeepDocumentProperties = true;
|
|
RemoveDocumentRestrictions = true;
|
|
RemoveOrphanBookmarks = true;
|
|
NumberFileNames = true;
|
|
SeperateByPage = 1;
|
|
}
|
|
}
|
|
}
|