THotPDF.SetLoadedOutlineStyle Method
方法摘要: THotPDF.SetLoadedOutlineStyle Method
声明
procedure SetLoadedOutlineStyle(Index: Integer; ABold, AItalic: boolean);
单元
HPDFDoc
参数
| 名称 | 用途 |
|---|---|
Index | 大纲条目的从零开始的索引(扁平化顺序) |
ABold | 为 True 时书签文本以粗体显示 |
AItalic | 为 True 时书签文本以斜体显示 |
使用注意事项
- 样式标志写入大纲条目的 F 字段(位 0 为斜体,位 1 为粗体),遵循 PDF 规范定义
- 不同 PDF 查看器对大纲样式的支持程度不同,部分旧版查看器可能忽略样式设置
- 可与 SetLoadedOutlineColor 配合使用,同时指定颜色与样式以构建结构化、易识别的大纲层次
相关 API
- SetLoadedOutlineColor
- RemoveLoadedOutline
- THotPDF
- 目录