THotPDF.SetLoadedOutlineStyle Method
Sets the font style of a loaded PDF bookmark (outline) entry, allowing independent control of bold and italic attributes
Declaration
procedure SetLoadedOutlineStyle(Index: Integer; ABold, AItalic: boolean);
Unit
HPDFDoc
Parameters
| Name | Purpose |
|---|---|
Index | Zero-based index of the outline entry (flattened sequence) |
ABold | 为 True 时书签文本以粗体显示 |
AItalic | 为 True 时书签文本以斜体显示 |
Usage notes
- 样式标志写入大纲条目的
F字段(位 0 为斜体,位 1 为粗体),遵循 PDF 规范定义 - Different PDF viewers support outline styles to varying degrees; some older viewers may ignore style settings
- 可与
SetLoadedOutlineColor配合使用,同时指定颜色与样式以构建结构化、易识别的大纲层次