THotPDF.GetLoadedPageLabelInfo Method
Reads the page label range information starting from a specified page in the loaded PDF document, including numbering style, prefix, and starting number
Declaration
function GetLoadedPageLabelInfo(StartPageIndex: Integer; out AStyle: AnsiString; out APrefix: AnsiString; out AStart: Integer): boolean;
Unit
HPDFDoc
Parameters
| Name | Purpose |
|---|---|
StartPageIndex | The zero-based index of the starting page for the page label range |
AStyle | Out parameter receiving the numbering style of this range (e.g. D for decimal, R for upper-case Roman) |
APrefix | Output parameter, receives the prefix string for page labels in this range |
AStart | Output parameter, receives the starting number value for the first page in the range |
Return value
Returns True if a page label range covering the requested page was found in the label array
Usage notes
- Page labels give different sections of a document their own numbering rules (Roman numerals for a preface, Arabic numerals for the body, for example)
- The reported range runs from its starting page up to the page before the next label range begins
- If the document defines no page labels every call returns False