THotPDF.SetPageLabel Method
方法摘要: THotPDF.SetPageLabel Method
宣告
procedure SetPageLabel(StartPageIndex: Integer; Style: THPDFPageLabelStyle; const Prefix: AnsiString = ''; StartNumber: Integer = 1);
單元
HPDFDoc
參數
| 名稱 | 用途 |
|---|---|
StartPageIndex | 標籤範圍起始的頁面索引(從零開始) |
Style | THPDFPageLabelStyle 的編號樣式THPDFPageLabelStyle
|
Prefix | 加在每個產生頁碼前的選擇性文字 |
StartNumber | 此範圍使用的第一個邏輯編號,須為 1 以上的整數 |
使用說明
- EndDoc 完成產出 PDF 時,此方法會寫入 catalog 的 /PageLabels number tree
EndDoc時寫出/PageLabels數字樹 - Calling the method again with the same
StartPageIndex - 當沒有範圍從第一頁開始時,第一個範圍之前的頁面維持普通十進位編號,因為數字樹必須涵蓋頁面索引 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 label 只改變檢視器的頁碼顯示,不會重新排列頁面
相關 API
- THPDFPageLabelStyle Type
- THotPDF.ClearPageLabels Method