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 both direct or indirect root
Namesarrays and nestedKidsintermediate and leaf nodes per ISO 32000-1 §7.9.6, deduplicating visited nodes against cyclic references - Missing or empty name trees return zero