mirror of
https://github.com/wmjordan/PDFPatcher.git
synced 2026-10-18 21:52:34 +08:00
519 lines
29 KiB
C#
519 lines
29 KiB
C#
using System;
|
||
using System.Collections.Generic;
|
||
using iTextSharp.text.pdf;
|
||
using E = System.Text.Encoding;
|
||
|
||
namespace PDFPatcher
|
||
{
|
||
internal enum Function
|
||
{
|
||
FrontPage, InfoFileOptions, InfoExchanger, ExtractPages, ExtractImages, RenderPages, EditorOptions, Patcher, PatcherOptions, Merger, MergerOptions, About, Editor, Options, BookmarkGenerator, Ocr, Inspector, Rename, Log, Default, CustomizeToolbar
|
||
}
|
||
|
||
internal static class Constants
|
||
{
|
||
internal const string AppName = "PDF 补丁丁";
|
||
internal const string AppEngName = "PDFPatcher";
|
||
internal const string AppHomePage = "http://pdfpatcher.cnblogs.com";
|
||
internal const string AppRepository = "https://github.com/wmjordan/pdfpatcher";
|
||
internal const string AppRepository2 = "https://gitee.com/wmjordan/pdfpatcher";
|
||
internal const string AppUpdateFile = "http://files.cnblogs.com/pdfpatcher/pdfpatcher.update.xml";
|
||
|
||
/// <summary>
|
||
/// 信息文件根元素。
|
||
/// </summary>
|
||
internal const string PdfInfo = "PDF信息";
|
||
internal const string InfoDocVersion = "0.3.3";
|
||
internal const string ContentPrefix = "pdf";
|
||
internal const string ContentNamespace = "pdf:ContentXml";
|
||
|
||
internal static class FileExtensions
|
||
{
|
||
internal const string Json = ".json";
|
||
internal const string JsonFilter = "程序配置文件 (*.json)|*.json";
|
||
internal const string Pdf = ".pdf";
|
||
internal const string PdfFilter = "PDF 文件 (*.pdf)|*.pdf";
|
||
internal const string Txt = ".txt";
|
||
internal const string TxtFilter = "简易文本书签文件 (*.txt)|*.txt";
|
||
internal const string Xml = ".xml";
|
||
internal const string XmlFilter = "PDF 信息文件 (*.xml)|*.xml";
|
||
internal const string PdfOrXmlFilter = "PDF 文件或信息文件 (*.pdf, *.xml)|*.pdf;*.xml";
|
||
internal const string XmlOrTxtFilter = "书签文件 (*.xml, *.txt)|*.xml;*.txt";
|
||
internal const string AllEditableFilter = "所有包含 PDF 信息的文件(*.pdf,*.xml,*.txt)|*.pdf;*.xml;*.txt|" + PdfFilter + "|" + XmlFilter + "|" + TxtFilter;
|
||
internal const string AllFilter = "所有文件|*.*";
|
||
internal const string ImageFilter = "图片文件 (*.jpg, *.jpeg, *.tiff, *.tif, *.png, *.gif)|*.jpg;*.jpeg;*.tiff;*.tif;*.png;*.gif";
|
||
internal const string Tif = ".tif";
|
||
internal const string Tiff = ".tiff";
|
||
internal const string Jpg = ".jpg";
|
||
internal const string Jpeg = ".jpeg";
|
||
internal const string Png = ".png";
|
||
internal const string Gif = ".gif";
|
||
internal const string Jp2 = ".jp2";
|
||
internal const string Bmp = ".bmp";
|
||
internal const string Dat = ".dat";
|
||
internal const string Tmp = ".tmp";
|
||
internal const string Ttf = ".ttf";
|
||
internal const string Ttc = ".ttc";
|
||
internal const string Otf = ".otf";
|
||
internal readonly static string[] AllBookmarkExtension = { ".xml", ".txt" };
|
||
internal readonly static string[] PdfAndAllBookmarkExtension = { ".pdf", ".xml", ".txt" };
|
||
internal readonly static string[] AllSupportedImageExtension = { Tif, Jpg, Png, Gif, Tiff, Jpeg, Bmp, Jp2 };
|
||
}
|
||
|
||
#region 功能名称
|
||
static class Functions
|
||
{
|
||
internal const string FrontPage = "FrontPage";
|
||
internal const string Patcher = "Patcher";
|
||
internal const string Merger = "Merger";
|
||
internal const string ImageExtractor = "ImageExtractor";
|
||
internal const string PageExtractor = "PageExtractor";
|
||
internal const string PageRenderer = "PageRenderer";
|
||
internal const string BookmarkEditor = "BookmarkEditor";
|
||
internal const string BookmarkGenerator = "BookmarkGenerator";
|
||
internal const string Ocr = "Ocr";
|
||
internal const string Inspector = "Inspector";
|
||
internal const string Log = "Log";
|
||
internal const string About = "About";
|
||
}
|
||
#endregion
|
||
|
||
#region PDF 对象类型
|
||
internal static class ObjectTypes
|
||
{
|
||
internal static readonly string[] Names = { "字典", "名称", "数值", "文本", "数组", "布尔", "引用" };
|
||
internal static readonly int[] IDs = { PdfObject.DICTIONARY, PdfObject.NAME, PdfObject.NUMBER, PdfObject.STRING, PdfObject.ARRAY, PdfObject.BOOLEAN, PdfObject.INDIRECT };
|
||
}
|
||
#endregion
|
||
|
||
#region 文件名替代符
|
||
internal static class FileNameMacros
|
||
{
|
||
internal const string FileName = "<源文件名>";
|
||
internal const string FolderName = "<源目录名>";
|
||
internal const string PathName = "<源目录路径>";
|
||
internal const string TitleProperty = "<" + Info.Title + ">";
|
||
internal const string AuthorProperty = "<" + Info.Author + ">";
|
||
internal const string SubjectProperty = "<" + Info.Subject + ">";
|
||
internal const string KeywordsProperty = "<" + Info.Keywords + ">";
|
||
internal const string PageCount = "<页数>";
|
||
}
|
||
#endregion
|
||
|
||
#region 度量单位
|
||
internal static class Units
|
||
{
|
||
internal const string ThisName = "度量单位";
|
||
internal const string Unit = "单位";
|
||
internal const string Point = "点";
|
||
internal const string CM = "厘米";
|
||
internal const string MM = "毫米";
|
||
internal const string Inch = "英寸";
|
||
internal const float CmToPoint = 72f / 2.54f;
|
||
internal const float MmToPoint = 7.2f / 2.54f;
|
||
internal const float DefaultDpi = 72f;
|
||
internal static readonly string[] Names = { CM, MM, Inch, Point };
|
||
internal static readonly float[] Factors = { CmToPoint, MmToPoint, DefaultDpi, 1 };
|
||
}
|
||
#endregion
|
||
|
||
#region 对齐方式
|
||
internal static class Alignments
|
||
{
|
||
internal static readonly string[] HorizontalAlignments = { "左对齐", "水平居中", "右对齐" };
|
||
internal static readonly string[] VerticalAlignments = { "置顶", "垂直居中", "置底" };
|
||
}
|
||
#endregion
|
||
|
||
#region 方位
|
||
internal static class Coordinates
|
||
{
|
||
internal const string Left = "左";
|
||
internal const string Right = "右";
|
||
internal const string Top = "上";
|
||
internal const string Bottom = "下";
|
||
internal const string Width = "宽";
|
||
internal const string Height = "高";
|
||
internal const string Direction = "方向";
|
||
internal const string Horizontal = "横向";
|
||
internal const string Vertical = "纵向";
|
||
internal const string ScaleFactor = "比例";
|
||
internal const string Unchanged = "保持不变";
|
||
}
|
||
#endregion
|
||
|
||
#region 编码
|
||
internal static class Encoding
|
||
{
|
||
internal const string SystemDefault = "系统默认";
|
||
internal const string Automatic = "自动选择";
|
||
internal static readonly string[] EncodingNames = { Automatic,
|
||
SystemDefault,
|
||
"UTF-16 Big Endian",
|
||
"UTF-16 Little Endian",
|
||
"UTF-8",
|
||
"GB18030",
|
||
"BIG5" };
|
||
internal static readonly E[] Encodings = { null,
|
||
E.Default,
|
||
E.BigEndianUnicode,
|
||
E.Unicode,
|
||
E.UTF8,
|
||
E.GetEncoding ("gb18030"),
|
||
E.GetEncoding ("big5") };
|
||
}
|
||
#endregion
|
||
|
||
#region 文档信息
|
||
internal static class Info
|
||
{
|
||
internal const string ThisName = "文档信息";
|
||
|
||
internal const string ProductName = "程序名称";
|
||
internal const string ProductVersion = "程序版本";
|
||
internal const string ExportDate = "导出时间";
|
||
internal const string DocumentName = "PDF文件名";
|
||
internal const string DocumentPath = "PDF文件位置";
|
||
internal const string PageNumber = "页数";
|
||
internal const string Title = "标题";
|
||
internal const string Author = "作者";
|
||
internal const string Subject = "主题";
|
||
internal const string Keywords = "关键字";
|
||
internal const string Creator = "创建程序";
|
||
internal const string Producer = "处理程序";
|
||
internal const string CreationDate = "创建日期";
|
||
internal const string ModDate = "最近修改日期";
|
||
internal const string MetaData = "XML元数据";
|
||
}
|
||
internal const string Version = "PDF版本";
|
||
internal const string Catalog = "文档编录";
|
||
internal const string Body = "正文内容";
|
||
internal const string DocumentBookmark = "文档书签";
|
||
#endregion
|
||
|
||
#region 阅读器设定
|
||
internal const string PageLayout = "页面布局";
|
||
internal static class PageLayoutType
|
||
{
|
||
internal static readonly string[] Names = { "保持不变",
|
||
"单页连续", "双页连续", "双页连续首页独置",
|
||
"单页", "双页", "双页首页独置" };
|
||
internal static readonly PdfName[] PdfNames = { PdfName.NONE,
|
||
PdfName.ONECOLUMN, PdfName.TWOCOLUMNLEFT, PdfName.TWOCOLUMNRIGHT,
|
||
PdfName.SINGLEPAGE, PdfName.TWOPAGELEFT, PdfName.TWOPAGERIGHT };
|
||
}
|
||
internal const string PageMode = "初始模式";
|
||
internal static class PageModes
|
||
{
|
||
internal static readonly string[] Names = { "保持不变",
|
||
"不显示边栏", "显示文档书签", "显示页面缩略图",
|
||
"全屏显示", "显示可选内容组", "显示附件栏" };
|
||
internal static readonly PdfName[] PdfNames = { PdfName.NONE,
|
||
PdfName.USENONE, PdfName.USEOUTLINES, PdfName.USETHUMBS,
|
||
PdfName.FULLSCREEN, PdfName.USEOC, PdfName.USEATTACHMENTS };
|
||
}
|
||
internal const string ViewerPreferences = "阅读器设定";
|
||
internal static class ViewerPreferencesType
|
||
{
|
||
internal static readonly string[] Names = { "隐藏菜单", "隐藏工具栏",
|
||
"只显示文档内容", "窗口适合文档首页",
|
||
"窗口居中", "显示文档标题" };
|
||
internal static readonly PdfName[] PdfNames = { PdfName.HIDEMENUBAR, PdfName.HIDETOOLBAR,
|
||
PdfName.HIDEWINDOWUI, PdfName.FITWINDOW,
|
||
PdfName.CENTERWINDOW, PdfName.DISPLAYDOCTITLE };
|
||
internal const string Direction = "阅读方向";
|
||
internal static class DirectionType
|
||
{
|
||
internal static readonly string[] Names = { "保持不变", "从左到右", "从右到左" };
|
||
internal static readonly PdfName[] PdfNames = { PdfName.NONE, PdfName.L2R, PdfName.R2L };
|
||
}
|
||
}
|
||
#endregion
|
||
|
||
#region 页码样式
|
||
internal const string PageLabels = "页码样式";
|
||
internal static class PageLabelStyles
|
||
{
|
||
internal static readonly string[] Names = { "数字", "大写罗马数字", "小写罗马数字", "大写英文字母", "小写英文字母", "无" };
|
||
internal static readonly char[] PdfValues = { 'D', 'R', 'r', 'A', 'a', '-' };
|
||
internal static readonly char[] SimpleInfoIdentifiers = { '0', 'I', 'i', 'A', 'a', '-' };
|
||
internal static readonly int[] Values = {
|
||
PdfPageLabels.DECIMAL_ARABIC_NUMERALS,
|
||
PdfPageLabels.UPPERCASE_ROMAN_NUMERALS,
|
||
PdfPageLabels.LOWERCASE_ROMAN_NUMERALS,
|
||
PdfPageLabels.UPPERCASE_LETTERS,
|
||
PdfPageLabels.LOWERCASE_LETTERS,
|
||
PdfPageLabels.EMPTY,
|
||
};
|
||
}
|
||
internal static class PageLabelsAttributes
|
||
{
|
||
internal const string PageNumber = "实际页码";
|
||
internal const string StartPage = "起始页码";
|
||
internal const string Prefix = "页码前缀";
|
||
internal const string Style = "样式";
|
||
}
|
||
#endregion
|
||
|
||
#region 页面内容
|
||
internal static class Content
|
||
{
|
||
internal const string Page = "页面";
|
||
internal const string PageNumber = "页码";
|
||
internal const string ResourceID = "资源编号";
|
||
internal const string RefType = "引用对象类型";
|
||
internal const string Texts = "文本内容";
|
||
internal const string Operators = "命令";
|
||
internal const string Operands = "参数";
|
||
internal const string Name = "名称";
|
||
internal const string Item = "项目";
|
||
internal const string Path = "路径";
|
||
internal const string Type = "类型";
|
||
internal const string Length = "长度";
|
||
internal const string Raw = "原始内容";
|
||
internal const string Value = "值";
|
||
internal static class PageSettings
|
||
{
|
||
internal const string ThisName = "页面设置";
|
||
internal const string MediaBox = "页面边框";
|
||
internal const string CropBox = "截取边框";
|
||
internal const string TrimBox = "裁剪边框";
|
||
internal const string ArtBox = "内容边框";
|
||
internal const string BleedBox = "出血边框";
|
||
internal const string Rotation = "旋转角度";
|
||
}
|
||
internal static class OperandNames
|
||
{
|
||
internal const string Matrix = "矩阵";
|
||
internal const string ResourceName = "资源名称";
|
||
internal const string Size = "尺寸";
|
||
internal const string Text = "文本";
|
||
}
|
||
internal static class RotationDirections
|
||
{
|
||
internal const string ThisName = PageSettings.Rotation;
|
||
internal const string Zero = "保持不变";
|
||
internal const string Right = "顺时针90度";
|
||
internal const string HalfClock = "180度";
|
||
internal const string Left = "逆时针90度";
|
||
internal static readonly string[] Names = { Zero, Right, HalfClock, Left };
|
||
internal static readonly int[] Values = { 0, 90, 180, 270 };
|
||
}
|
||
}
|
||
#endregion
|
||
|
||
#region 页码范围
|
||
internal const string PageRange = "页码范围";
|
||
internal static class PageFilterTypes
|
||
{
|
||
internal const string ThisName = "页码筛选";
|
||
internal const string AllPages = "所有页";
|
||
internal static readonly string[] Names = { AllPages, "单数页", "双数页" };
|
||
internal static readonly int[] Values = { -1, 1, 0 };
|
||
}
|
||
#endregion
|
||
|
||
#region 目标
|
||
internal const string NamedDestination = "命名位置";
|
||
internal static class DestinationAttributes
|
||
{
|
||
internal const string Page = "页码";
|
||
internal const string FirstPageNumber = "首页页码";
|
||
internal const string Action = "动作";
|
||
internal const string NewWindow = "新窗口";
|
||
internal const string Path = "路径";
|
||
internal const string Name = "名称";
|
||
internal const string Named = "命名位置";
|
||
internal const string NamedN = "PDF名称";
|
||
internal const string View = "显示方式";
|
||
internal const string ScriptContent = "脚本内容";
|
||
internal static class ViewType
|
||
{
|
||
internal const string XYZ = "坐标缩放";
|
||
internal const string Fit = "适合页面";
|
||
internal const string FitH = "适合页宽";
|
||
internal const string FitV = "适合页高";
|
||
internal const string FitB = "适合窗口";
|
||
internal const string FitBH = "适合窗口宽度";
|
||
internal const string FitBV = "适合窗口高度";
|
||
internal const string FitR = "适合区域";
|
||
internal static readonly string[] Names = { XYZ, Fit, FitH, FitV, FitB, FitBH, FitBV, FitR };
|
||
internal static readonly PdfName[] PdfNames = { PdfName.XYZ, PdfName.FIT, PdfName.FITH, PdfName.FITV, PdfName.FITB, PdfName.FITBH, PdfName.FITBV, PdfName.FITR };
|
||
}
|
||
}
|
||
internal static class ActionType
|
||
{
|
||
internal const string Goto = "转到页面";
|
||
internal const string GotoR = "打开外部PDF文档";
|
||
internal const string Launch = "启动程序";
|
||
internal const string Uri = "打开网址";
|
||
internal const string Javascript = "执行脚本";
|
||
internal static readonly string[] Names = { Goto, GotoR, Launch, Uri, Javascript };
|
||
internal static readonly PdfName[] PdfNames = { PdfName.GOTO, PdfName.GOTOR, PdfName.LAUNCH, PdfName.URI, PdfName.JAVASCRIPT };
|
||
}
|
||
#endregion
|
||
|
||
#region 书签
|
||
internal const string Bookmark = "书签";
|
||
internal static class BookmarkAttributes
|
||
{
|
||
internal const string Title = "文本";
|
||
internal const string Open = "默认打开";
|
||
internal const string Style = "样式";
|
||
internal static class StyleType
|
||
{
|
||
internal const string Normal = "常规";
|
||
internal const string Bold = "粗体";
|
||
internal const string BoldItalic = "粗斜体";
|
||
internal const string Italic = "斜体";
|
||
internal static readonly string[] Names = { Normal, Italic, Bold, BoldItalic };
|
||
}
|
||
}
|
||
internal const string Color = "颜色";
|
||
internal static class Colors
|
||
{
|
||
internal const string Red = "红";
|
||
internal const string Green = "绿";
|
||
internal const string Blue = "蓝";
|
||
internal const string Gray = "灰度";
|
||
internal const string Transparent = "透明";
|
||
internal const string Cyan = "青";
|
||
internal const string Magenta = "紫";
|
||
internal const string Yellow = "黄";
|
||
internal const string Black = "黑";
|
||
}
|
||
internal static class Boolean
|
||
{
|
||
internal const string True = "是";
|
||
internal const string False = "否";
|
||
}
|
||
#endregion
|
||
|
||
#region 页面链接
|
||
internal const string PageLink = "页面链接";
|
||
internal static class PageLinkAttributes
|
||
{
|
||
internal const string Link = "链接";
|
||
internal const string LinkAction = "链接动作";
|
||
internal const string PageNumber = "页码";
|
||
internal const string Border = "边框";
|
||
internal const string Style = "点击效果";
|
||
internal const string QuadPoints = "四边形坐标";
|
||
internal const string Contents = "文本";
|
||
}
|
||
#endregion
|
||
|
||
#region 光学字符识别
|
||
internal static class Ocr
|
||
{
|
||
internal const int NoLanguage = 0;
|
||
internal const int SimplifiedChineseLangID = 2052;
|
||
internal const int TraditionalChineseLangID = 1028;
|
||
internal const int JapaneseLangID = 1041;
|
||
internal const int KoreanLangID = 1042;
|
||
internal const int EnglishLangID = 1033;
|
||
|
||
internal const int DanishLangID = 1030;
|
||
internal const int DutchLangID = 1043;
|
||
internal const int FinnishLangID = 1035;
|
||
internal const int FrenchLangID = 1036;
|
||
internal const int GermanLangID = 1031;
|
||
internal const int ItalianLangID = 1040;
|
||
internal const int NorskLangID = 1044;
|
||
internal const int PortugueseLangID = 1046;
|
||
internal const int SpanishLangID = 3082;
|
||
internal const int SwedishLangID = 1053;
|
||
internal const int CzechLangID = 1029;
|
||
internal const int PolishLangID = 1045;
|
||
internal const int HungarianLangID = 1038;
|
||
internal const int GreekLangID = 1032;
|
||
internal const int RussianLangID = 1049;
|
||
internal const int TurkishLangID = 1055;
|
||
|
||
internal static int[] LangIDs = { SimplifiedChineseLangID, TraditionalChineseLangID, EnglishLangID, JapaneseLangID, KoreanLangID, DanishLangID, DutchLangID, FinnishLangID, FrenchLangID, GermanLangID, ItalianLangID, NorskLangID, PortugueseLangID, SpanishLangID, SwedishLangID, CzechLangID, PolishLangID, HungarianLangID, GreekLangID, RussianLangID, TurkishLangID };
|
||
internal static int[] OcrLangIDs = { SimplifiedChineseLangID, TraditionalChineseLangID, 9, 17, 18, 6, 19, 11, 12, 7, 16, 20, 22, 10, 29, 5, 21, 14, 8, 25, 31 };
|
||
internal static string[] LangNames = { "简体中文", "繁体中文", "英文", "日文", "韩文", "丹麦文", "荷兰文", "芬兰文", "法文", "德文", "意大利文", "挪威文", "葡萄牙文", "西班牙文", "瑞典文", "捷克文", "波兰文", "匈牙利文", "希腊文", "俄文", "土耳其文" };
|
||
internal const string Result = "识别结果";
|
||
internal const string Text = "文本";
|
||
internal const string Content = "内容";
|
||
internal const string Image = "图片";
|
||
}
|
||
#endregion
|
||
|
||
#region 字体属性
|
||
internal static class Font
|
||
{
|
||
internal const string ThisName = "字体";
|
||
internal const string DocumentFont = "文档字体";
|
||
internal const string ID = "编号";
|
||
internal const string Name = "名称";
|
||
internal const string Size = "文本尺寸";
|
||
}
|
||
internal static class FontOccurrence
|
||
{
|
||
internal const string Count = "出现次数";
|
||
internal const string FirstText = "首次出现文本";
|
||
internal const string FirstPage = "首次出现页码";
|
||
}
|
||
#endregion
|
||
|
||
#region 导出为图片
|
||
internal static class ColorSpaces
|
||
{
|
||
internal const string Rgb = "DeviceRGB";
|
||
internal const string Bgr = "DeviceBGR";
|
||
internal const string Cmyk = "DeviceCMYK";
|
||
internal const string Gray = "DeviceGray";
|
||
internal static string[] Names = { Rgb, Gray };
|
||
}
|
||
#endregion
|
||
|
||
#region 超星命名规则
|
||
internal static class CajNaming
|
||
{
|
||
internal const string Cover = "cov";
|
||
internal const string TitlePage = "bok";
|
||
internal const string CopyrightPage = "leg";
|
||
internal const string Foreword = "fow";
|
||
internal const string Contents = "!";
|
||
}
|
||
#endregion
|
||
|
||
internal static class AutoBookmark
|
||
{
|
||
internal const string ThisName = "自动书签";
|
||
internal const string Group = "条件集合";
|
||
internal const string Name = "名称";
|
||
internal const string Description = "说明";
|
||
internal const string IsInclusive = "正向过滤";
|
||
|
||
}
|
||
|
||
internal static class Chinese {
|
||
public const string Simplified = "皑蔼碍爱翱袄奥坝罢摆败颁办绊帮绑镑谤剥饱宝报鲍辈贝钡狈备惫绷笔毕毙闭边编贬变辩辫鳖瘪濒滨宾摈饼拨钵铂驳卜补参蚕残惭惨灿苍舱仓沧厕侧册测层诧搀掺蝉馋谗缠铲产阐颤场尝长偿肠厂畅钞车彻尘陈衬撑称惩诚骋痴迟驰耻齿炽冲虫宠畴踌筹绸丑橱厨锄雏础储触处传疮闯创锤纯绰辞词赐聪葱囱从丛凑窜错达带贷担单郸掸胆惮诞弹当挡党荡档捣岛祷导盗灯邓敌涤递缔点垫电淀钓调迭谍叠钉顶锭订东动栋冻斗犊独读赌镀锻断缎兑队对吨顿钝夺鹅额讹恶饿儿尔饵贰发罚阀珐矾钒烦范贩饭访纺飞废费纷坟奋愤粪丰枫锋风疯冯缝讽凤肤辐抚辅赋复负讣妇缚该钙盖干赶秆赣冈刚钢纲岗皋镐搁鸽阁铬个给龚宫巩贡钩沟构购够蛊顾剐关观馆惯贯广规硅归龟闺轨诡柜贵刽辊滚锅国过骇韩汉阂鹤贺横轰鸿红后壶护沪户哗华画划话怀坏欢环还缓换唤痪焕涣黄谎挥辉毁贿秽会烩汇讳诲绘荤浑伙获货祸击机积饥讥鸡绩缉极辑级挤几蓟剂济计记际继纪夹荚颊贾钾价驾歼监坚笺间艰缄茧检碱硷拣捡简俭减荐槛鉴践贱见键舰剑饯渐溅涧浆蒋桨奖讲酱胶浇骄娇搅铰矫侥脚饺缴绞轿较秸阶节茎惊经颈静镜径痉竞净纠厩旧驹举据锯惧剧鹃绢杰洁结诫届紧锦仅谨进晋烬尽劲荆觉决诀绝钧军骏开凯颗壳课垦恳抠库裤夸块侩宽矿旷况亏岿窥馈溃扩阔蜡腊莱来赖蓝栏拦篮阑兰澜谰揽览懒缆烂滥捞劳涝乐镭垒类泪篱离里鲤礼丽厉励砾历沥隶俩联莲连镰怜涟帘敛脸链恋炼练粮凉两辆谅疗辽镣猎临邻鳞凛赁龄铃凌灵岭领馏刘龙聋咙笼垄拢陇楼娄搂篓芦卢颅庐炉掳卤虏鲁赂禄录陆驴吕铝侣屡缕虑滤绿峦挛孪滦乱抡轮伦仑沦纶论萝罗逻锣箩骡骆络妈玛码蚂马骂吗买麦卖迈脉瞒馒蛮满谩猫锚铆贸么霉没镁门闷们锰梦谜弥觅绵缅庙灭悯闽鸣铭谬谋亩钠纳难挠脑恼闹馁腻撵捻酿鸟聂啮镊镍柠狞宁拧泞钮纽脓浓农疟诺欧鸥殴呕沤盘庞国爱赔喷鹏骗飘频贫苹凭评泼颇扑铺朴谱脐齐骑岂启气弃讫牵扦钎铅迁签谦钱钳潜浅谴堑枪呛墙蔷强抢锹桥乔侨翘窍窃钦亲轻氢倾顷请庆琼穷趋区躯驱龋颧权劝却鹊让饶扰绕热韧认纫荣绒软锐闰润洒萨鳃赛伞丧骚扫涩杀纱筛晒闪陕赡缮伤赏烧绍赊摄慑设绅审婶肾渗声绳胜圣师狮湿诗尸时蚀实识驶势释饰视试寿兽枢输书赎属术树竖数帅双谁税顺说硕烁丝饲耸怂颂讼诵擞苏诉肃虽绥岁孙损笋缩琐锁獭挞抬摊贪瘫滩坛谭谈叹汤烫涛绦腾誊锑题体屉条贴铁厅听烃铜统头图涂团颓蜕脱鸵驮驼椭洼袜弯湾顽万网韦违围为潍维苇伟伪纬谓卫温闻纹稳问瓮挝蜗涡窝呜钨乌诬无芜吴坞雾务误锡牺袭习铣戏细虾辖峡侠狭厦锨鲜纤咸贤衔闲显险现献县馅羡宪线厢镶乡详响项萧销晓啸蝎协挟携胁谐写泻谢锌衅兴汹锈绣虚嘘须许绪续轩悬选癣绚学勋询寻驯训讯逊压鸦鸭哑亚讶阉烟盐严颜阎艳厌砚彦谚验鸯杨扬疡阳痒养样瑶摇尧遥窑谣药爷页业叶医铱颐遗仪彝蚁艺亿忆义诣议谊译异绎荫阴银饮樱婴鹰应缨莹萤营荧蝇颖哟拥佣痈踊咏涌优忧邮铀犹游诱舆鱼渔娱与屿语吁御狱誉预驭鸳渊辕园员圆缘远愿约跃钥岳粤悦阅云郧匀陨运蕴酝晕韵杂灾载攒暂赞赃脏凿枣灶责择则泽贼赠扎札轧铡闸诈斋债毡盏斩辗崭栈战绽张涨帐账胀赵蛰辙锗这贞针侦诊镇阵挣睁狰帧郑证织职执纸挚掷帜质钟终种肿众诌轴皱昼骤猪诸诛烛瞩嘱贮铸筑驻专砖转赚桩庄装妆壮状锥赘坠缀谆浊兹资渍踪综总纵邹诅组钻致钟么为只凶准启板里雳余链泄";
|
||
public const string Traditional = "皚藹礙愛翺襖奧壩罷擺敗頒辦絆幫綁鎊謗剝飽寶報鮑輩貝鋇狽備憊繃筆畢斃閉邊編貶變辯辮鼈癟瀕濱賓擯餅撥缽鉑駁蔔補參蠶殘慚慘燦蒼艙倉滄廁側冊測層詫攙摻蟬饞讒纏鏟産闡顫場嘗長償腸廠暢鈔車徹塵陳襯撐稱懲誠騁癡遲馳恥齒熾沖蟲寵疇躊籌綢醜櫥廚鋤雛礎儲觸處傳瘡闖創錘純綽辭詞賜聰蔥囪從叢湊竄錯達帶貸擔單鄲撣膽憚誕彈當擋黨蕩檔搗島禱導盜燈鄧敵滌遞締點墊電澱釣調叠諜疊釘頂錠訂東動棟凍鬥犢獨讀賭鍍鍛斷緞兌隊對噸頓鈍奪鵝額訛惡餓兒爾餌貳發罰閥琺礬釩煩範販飯訪紡飛廢費紛墳奮憤糞豐楓鋒風瘋馮縫諷鳳膚輻撫輔賦複負訃婦縛該鈣蓋幹趕稈贛岡剛鋼綱崗臯鎬擱鴿閣鉻個給龔宮鞏貢鈎溝構購夠蠱顧剮關觀館慣貫廣規矽歸龜閨軌詭櫃貴劊輥滾鍋國過駭韓漢閡鶴賀橫轟鴻紅後壺護滬戶嘩華畫劃話懷壞歡環還緩換喚瘓煥渙黃謊揮輝毀賄穢會燴彙諱誨繪葷渾夥獲貨禍擊機積饑譏雞績緝極輯級擠幾薊劑濟計記際繼紀夾莢頰賈鉀價駕殲監堅箋間艱緘繭檢堿鹼揀撿簡儉減薦檻鑒踐賤見鍵艦劍餞漸濺澗漿蔣槳獎講醬膠澆驕嬌攪鉸矯僥腳餃繳絞轎較稭階節莖驚經頸靜鏡徑痙競淨糾廄舊駒舉據鋸懼劇鵑絹傑潔結誡屆緊錦僅謹進晉燼盡勁荊覺決訣絕鈞軍駿開凱顆殼課墾懇摳庫褲誇塊儈寬礦曠況虧巋窺饋潰擴闊蠟臘萊來賴藍欄攔籃闌蘭瀾讕攬覽懶纜爛濫撈勞澇樂鐳壘類淚籬離裏鯉禮麗厲勵礫曆瀝隸倆聯蓮連鐮憐漣簾斂臉鏈戀煉練糧涼兩輛諒療遼鐐獵臨鄰鱗凜賃齡鈴淩靈嶺領餾劉龍聾嚨籠壟攏隴樓婁摟簍蘆盧顱廬爐擄鹵虜魯賂祿錄陸驢呂鋁侶屢縷慮濾綠巒攣孿灤亂掄輪倫侖淪綸論蘿羅邏鑼籮騾駱絡媽瑪碼螞馬罵嗎買麥賣邁脈瞞饅蠻滿謾貓錨鉚貿麽黴沒鎂門悶們錳夢謎彌覓綿緬廟滅憫閩鳴銘謬謀畝鈉納難撓腦惱鬧餒膩攆撚釀鳥聶齧鑷鎳檸獰甯擰濘鈕紐膿濃農瘧諾歐鷗毆嘔漚盤龐國愛賠噴鵬騙飄頻貧蘋憑評潑頗撲鋪樸譜臍齊騎豈啓氣棄訖牽扡釺鉛遷簽謙錢鉗潛淺譴塹槍嗆牆薔強搶鍬橋喬僑翹竅竊欽親輕氫傾頃請慶瓊窮趨區軀驅齲顴權勸卻鵲讓饒擾繞熱韌認紉榮絨軟銳閏潤灑薩鰓賽傘喪騷掃澀殺紗篩曬閃陝贍繕傷賞燒紹賒攝懾設紳審嬸腎滲聲繩勝聖師獅濕詩屍時蝕實識駛勢釋飾視試壽獸樞輸書贖屬術樹豎數帥雙誰稅順說碩爍絲飼聳慫頌訟誦擻蘇訴肅雖綏歲孫損筍縮瑣鎖獺撻擡攤貪癱灘壇譚談歎湯燙濤縧騰謄銻題體屜條貼鐵廳聽烴銅統頭圖塗團頹蛻脫鴕馱駝橢窪襪彎灣頑萬網韋違圍爲濰維葦偉僞緯謂衛溫聞紋穩問甕撾蝸渦窩嗚鎢烏誣無蕪吳塢霧務誤錫犧襲習銑戲細蝦轄峽俠狹廈鍁鮮纖鹹賢銜閑顯險現獻縣餡羨憲線廂鑲鄉詳響項蕭銷曉嘯蠍協挾攜脅諧寫瀉謝鋅釁興洶鏽繡虛噓須許緒續軒懸選癬絢學勳詢尋馴訓訊遜壓鴉鴨啞亞訝閹煙鹽嚴顔閻豔厭硯彥諺驗鴦楊揚瘍陽癢養樣瑤搖堯遙窯謠藥爺頁業葉醫銥頤遺儀彜蟻藝億憶義詣議誼譯異繹蔭陰銀飲櫻嬰鷹應纓瑩螢營熒蠅穎喲擁傭癰踴詠湧優憂郵鈾猶遊誘輿魚漁娛與嶼語籲禦獄譽預馭鴛淵轅園員圓緣遠願約躍鑰嶽粵悅閱雲鄖勻隕運蘊醞暈韻雜災載攢暫贊贓髒鑿棗竈責擇則澤賊贈紮劄軋鍘閘詐齋債氈盞斬輾嶄棧戰綻張漲帳賬脹趙蟄轍鍺這貞針偵診鎮陣掙睜猙幀鄭證織職執紙摯擲幟質鍾終種腫衆謅軸皺晝驟豬諸誅燭矚囑貯鑄築駐專磚轉賺樁莊裝妝壯狀錐贅墜綴諄濁茲資漬蹤綜總縱鄒詛組鑽緻鐘麼為隻兇準啟闆裡靂餘鍊洩";
|
||
}
|
||
}
|
||
|
||
internal static class Messages
|
||
{
|
||
internal const string Welcome = "PDF 补丁丁——解除 PDF 文档的烦恼";
|
||
internal const string SourceFileNotFound = "源 PDF 文件不存在,请先指定有效的源 PDF 文件。";
|
||
internal const string InfoDocNotFound = "信息文件不存在,请先指定有效的信息文件。";
|
||
internal const string TargetFileNotSpecified = "请指定输出 PDF 文件的路径。";
|
||
internal const string InfoDocNotSpecified = "请指定输出信息文件的路径。";
|
||
internal const string SourceFileNameInvalid = "源 PDF 文件名无效。";
|
||
internal const string TargetFileNameInvalid = "输出 PDF 文件名无效。";
|
||
internal const string InfoFileNameInvalid = "信息文件的文件名无效。";
|
||
internal const string SourceFileEqualsTargetFile = "输入 PDF 文件和输出 PDF 文件的文件名不能相同。";
|
||
internal const string PasswordInvalid = "输入的密码错误,无法打开 PDF 文档。";
|
||
internal const string UserRightRequired = "此 PDF 文件的作者设置了修改文件的权限控制。\n如果您继续操作,您必须得到创建者对该文档进行修改的授权。\n如果您不能保证自己有权修改此文档,请按“取消”键退出,否则您需要承担修改此文档带来的一切责任。\n\n按住 Ctrl 键点击“确定”按钮,在本次使用过程中将不再提示权限问题。";
|
||
internal const string PageRanges = "在此输入需要处理的页码范围。\n如:“1-100”表示处理第1~100页。\n如有多个页码范围,可用空格、分号或逗号分开。\n如:“1-10;12;14-20”表示处理1~10、12和14~20页。";
|
||
internal const string ReversePageRanges = "此外还可以输入逆序页码,如“100-1”表示从第100页开始倒序处理至第1页。";
|
||
internal const string ModiNotAvailable = "本机尚未安装微软文本识别组件(MODI),无法使用识别文本功能。";
|
||
internal const string ConfirmAbandonDocument = "文档已被修改。打开新的文档将丢弃未保存的更改,是否确定打开新的文档?";
|
||
internal const string ConfirmCloseDirtyDocument = "文档已被修改。是否确定关闭文档?";
|
||
internal const string ConfirmCloseNDirtyDocument = "有 <N> 个文档的书签已被修改,但尚未保存。\n\n是否确定放弃所作的修改,并关闭程序?";
|
||
}
|
||
}
|