THotPDF.SetLoadedPageLabel Method
Sets loaded page label state for subsequent page geometry output. The setting affects later page drawing, page dictionary entries, conformance metadata, or text emission rather than already-written content
Declaration
procedure SetLoadedPageLabel(StartPageIndex: Integer; AStyle: Integer; const APrefix: AnsiString; AStart: Integer);
Unit
HPDFDoc
Parameters
| Name | Purpose |
|---|---|
StartPageIndex | Zero-based page index where the label range begins |
AStyle | Numbering style: 1 decimal, 2 upper-case Roman, 3 lower-case Roman, 4 upper-case letters, 5 lower-case letters, 0 prefix only |
APrefix | Optional text placed before each page number; bytes above 127 are read as UTF-8 |
AStart | First number of the range |
Return value
This member does not return a value
Usage notes
- The range is placed in the catalog /PageLabels number tree in page order, including trees split into /Kids nodes, so viewers read the labels correctly
- Calling the method again with the same StartPageIndex replaces that range
- When the document has no range starting at the first page, a plain decimal range is added for it, since the number tree must cover page index 0 (ISO 32000-1 12.4.2)