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

NamePurpose
IndexZero-based index of the bookmark entry
ABoldOutput parameter, returns True if the bookmark title is bold
AItalicOutput 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

Related APIs