THotPDF.GetLoadedNameTreeRootCount Method
Returns the total number of name-value pairs in the selected loaded document name tree
Declaration
function GetLoadedNameTreeRootCount(TreeType: THPDFNameTreeType): Integer;
Unit
HPDFDoc
Parameters
| Name | Purpose |
|---|---|
TreeType | Loaded document name-tree category to inspect |
Return value
Returns the total number of name-value pairs across the selected name tree
Usage notes
- Walks direct or indirect root
Namesarrays, together with nestedKidsintermediate and leaf nodes, per ISO 32000-1 §7.9.6, de-duplicating visited nodes so cyclic references cannot inflate the count - Missing or empty name trees return zero