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 | Numbering style from THPDFPageLabelStyle |
Prefix | Optional text placed before each generated page number |
StartNumber | First logical number used by this range, starting at 1 or higher |
使用上の注意
- The method writes a catalog
/PageLabelsnumber tree whenEndDocfinalizes the generated PDF - Calling the method again with the same
StartPageIndexreplaces the earlier range - 最初のページから始まる範囲がない場合、最初の範囲より前のページは通常の 10 進数番号を保ちます。ナンバーツリーはページインデックス 0 をカバーしなければならないためです(ISO 32000-1 12.4.2)
- 127 を超えるバイトを含むプレフィックスは UTF-8 として読まれ、Unicode テキスト文字列として格納されます
- The active PDF version must support page labels, so HotPDF raises or validates PDF 1.3 according to
StrictVersionLock - Page labels change viewer page-number display and do not reorder pages
Related API
- THPDFPageLabelStyle Type
- THotPDF.ClearPageLabels Method