InsertStructTreeCursorChild

Tagged PDF, structure repair

Description

Creates a new indirect StructElem dictionary under ParentCursorID (or StructTreeRoot) at structural ChildIndex

Syntax

Delphi

Function TPDFlib.InsertStructTreeCursorChild(ParentCursorID, ChildIndex: Integer; Const TagType: WideString): Integer;

Parameters

ParentCursorIDParent structure-element cursor, or 0 to insert directly under StructTreeRoot
ChildIndexOne-based insertion position among child structure elements, or 0 to append
TagTypeValid non-empty PDF structure type name such as Sect, P, H1, or Figure

Return values

A positive cursor ID referencing the inserted StructElem on success, or 0 on invalid arguments

Remarks

Close returned cursors with CloseStructTreeCursor when finished