THotPDF.GetLoadedOutlineColor Method

Reads the RGB colour component values of the specified bookmark (outline) entry in the loaded PDF document

Declaration

function GetLoadedOutlineColor(Index: Integer; out AR, AG, AB: Single): boolean;

Unit

HPDFDoc

Parameters

NamePurpose
IndexZero-based index of the bookmark entry
AROutput parameter, receives the red component value (0.0 to 1.0)
AGOutput parameter, receives the green component value (0.0 to 1.0)
ABOutput parameter, receives the blue component value (0.0 to 1.0)

Return value

Returns True if the colour information is successfully read; returns False if the bookmark entry does not contain a colour attribute or the index is out of bounds

Usage notes

Related APIs