THotPDF.GetLoadedOutlineItem Method

Reads the title text and target page index of the top-level entry at the specified index in the outline (bookmark) of the loaded PDF document

Declaration

function GetLoadedOutlineItem(Index: Integer; out ATitle: AnsiString; out APageIndex: Integer): boolean;

Unit

HPDFDoc

Parameters

NamePurpose
IndexZero-based index of the top-level outline entry; the valid range runs from 0 to GetLoadedOutlineCount - 1
ATitleOutput parameter, receives the bookmark title text string
APageIndexOutput parameter, receives the zero-based index of the target page pointed to by the bookmark; if the bookmark target is not a page jump, it outputs -1

Return value

Returns True when the outline entry is read successfully

Usage notes

Related APIs