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 شجرة أرقام
/PageLabelsعندEndDocfinalizes the generated PDF - Calling the method again with the same
StartPageIndexreplaces the earlier range - عندما لا يبدأ أي نطاق عند الصفحة الأولى تبقى الصفحات السابقة لأول نطاق بأرقام عشرية عادية، لأن شجرة الأعداد يجب أن تغطي فهرس الصفحة 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