THotPDF.SetLoadedOutlineOpen Method
Sets loaded outline open state for subsequent paragraph and outline output. The setting affects later page drawing, page dictionary entries, conformance metadata, or text emission rather than already-written content
Declaration
procedure SetLoadedOutlineOpen(Index: Integer; AOpen: boolean);
Unit
HPDFDoc
Parameters
| Name | Purpose |
|---|---|
Index | Zero-based index or object index used to select an existing item |
AOpen | True to show the item's children, False to collapse them |
Return value
This member does not return a value
Usage notes
- Index counts top-level outline items from 0
- The open state of an outline item is the sign of its /Count entry (ISO 32000-1 12.3.3). The method sets that sign and updates the counts of the whole outline, so the outline root keeps the number of items visible when the document opens
- An item without children has nothing to expand, so it is left unchanged apart from removing an /Open key that versions before 2.765.2 wrote by mistake