EnumOutlineTree

Outlines

Description

Enumerates the document outline tree in preorder and writes one TPDFlibOutlineNode record per outline when the supplied array has capacity. Pass an empty array to obtain the required length. Each outline object is visited at most once, so cycles cannot repeat entries

Syntax

Delphi

Function TPDFlib.EnumOutlineTree(Var Outlines: Array Of TPDFlibOutlineNode): Integer;

Parameters

OutlinesCaller-supplied array that receives outline IDs, parent and sibling IDs, first-child ID, level, destination page, open state, and title

Return values

0No outlines were found
Positive valueTotal outline count, which may be larger than the supplied array length