THotPDF.SetLoadedPageLabel Method
Defines a page label range for the loaded PDF starting from a specified page, setting the numbering style, prefix text, and starting number
Declaration
procedure SetLoadedPageLabel(StartPageIndex: Integer; const AStyle: AnsiString; const APrefix: AnsiString; AStart: Integer);
Unit
HPDFDoc
Parameters
| Name | Purpose |
|---|---|
StartPageIndex | The zero-based page index where the new label range begins |
AStyle | 编号样式,如 D(阿拉伯数字)、r(小写罗马)、R(大写罗马)、a/A(字母) |
APrefix | Page number prefix text, which will be appended before each page number (can be an empty string) |
AStart | 该范围从 StartPageIndex 页开始使用的逻辑页码起始值 |
Usage notes
- 页面标签存储于 PDF 的
PageLabels数字树中,影响查看器状态栏、书签跳转与打印对话框的页码显示 - This method can be called multiple times for the same document to divide multiple numbering ranges, for example, using Roman numerals for the preface and Arabic numerals for the main text
- Page labels only change the display numbering and do not affect the physical index order of the pages; physical indices continue to count sequentially from 0