THotPDF.GetLoadedOutlineStyle Method
Reads the font style flags (bold and italic) of a specified bookmark (outline) entry in the loaded PDF document
Declaration
function GetLoadedOutlineStyle(Index: Integer; out ABold, AItalic: boolean): boolean;
Unit
HPDFDoc
Parameters
| Name | Purpose |
|---|---|
Index | Zero-based index of the bookmark entry |
ABold | Output parameter, returns True if the bookmark title is bold |
AItalic | Output parameter, returns True if the bookmark title is italic |
Return value
Returns True if the style flag is successfully read; returns False if the bookmark entry does not contain an F field or the index is out of bounds
Usage notes
- 返回 False 时,ABold 与 AItalic 的值未定义,不应被使用
- Bookmark style corresponds to the F key in the PDF outline entry dictionary; the 1st bit of the bitmask indicates italic, and the 2nd bit indicates bold
- When used in conjunction with GetLoadedOutlineColor, the visual style information of the bookmark can be fully restored