GetStructTreeCursorItemIndex

Tagged PDF, structure repair

Description

Rebuilds the depth-first structure-tree snapshot and returns the current one-based index of the cursor element

Syntax

Delphi

Function TPDFlib.GetStructTreeCursorItemIndex(CursorID: Integer): Integer;

ActiveX

Function PDFlib::GetStructTreeCursorItemIndex(CursorID As Long) As Long

DLL

int DLGetStructTreeCursorItemIndex(int InstanceID, int CursorID);

Return values

The current positive item index, or 0 when the cursor is invalid or its element is no longer reachable

Remarks

Pass the returned index to GetStructTreeItemText or GetStructTreeItemIntProperty