THotPDF.GetLoadedCollectionFolderTree Method
Walks the portfolio folder tree (/Collection /Folders and its /Child / /Next links) and returns one node per folder with its /ID, name, parent ID, first child ID, next sibling ID, description and dates. Sibling chains are followed in stored order, which is the collection sort order or the case-folded name order
Declaration
function GetLoadedCollectionFolderTree: THPDFCollectionFolderNodeArray;
Unit
HPDFDoc
Parameters
| Name | Purpose |
|---|---|
| This member does not expose explicit parameters | |
Return value
A THPDFCollectionFolderNodeArray; empty when the document has no folder tree. Names and descriptions are decoded PDF text strings (PDFDocEncoding, UTF-16BE or UTF-8) returned in the host code page
Usage notes
- The walk is bounded (16384 nodes, depth 256) and a folder ID already visited ends that branch, so a malformed cyclic tree cannot loop forever
- Reconstruct sibling order from
FirstChildIDandNextSiblingIDrather than the array index