THotPDF.SetPageLabel Method
方法摘要: THotPDF.SetPageLabel Method
声明
procedure SetPageLabel(StartPageIndex: Integer; Style: THPDFPageLabelStyle; const Prefix: AnsiString = ''; StartNumber: Integer = 1);
单元
HPDFDoc
参数
| 名称 | 用途 |
|---|---|
StartPageIndex | Zero-based page index where the label range begins |
Style | 来自 THPDFPageLabelStyle 的编号样式 |
Prefix | Optional text placed before each generated page number |
StartNumber | First logical number used by this range, starting at 1 or higher |
使用说明
- 当
EndDoc定稿生成文档时,该方法会写出 catalog/PageLabels数字树 - 用同一个
StartPageIndex再次调用会替换先前的范围 - 没有区间起始于第一页时,第一个区间之前的页面保留纯十进制编号,因为数字树必须覆盖页索引 0(ISO 32000-1 12.4.2)
- 含 127 以上字节的前缀按 UTF-8 读取,并存储为 Unicode 文本字符串
- 当前 PDF 版本必须支持页面标签,因此 HotPDF 会依据
StrictVersionLock抛出异常或验证 PDF 1.3 - Page labels change viewer page-number display and do not reorder pages
Related API
- THPDFPageLabelStyle Type
- THotPDF.ClearPageLabels Method