THPDFNameTreeType Type
Selects which well-known catalog /Names sub-tree a loaded-document query looks at (X17 v2.414.0; ISO 32000-1 ยง7.9.6)
Declaration
THPDFNameTreeType= (nttDests, nttJavaScript, nttEmbeddedFiles, nttPages,
nttTemplates, nttIDs, nttURLs, nttAlternatePresentations, nttRenditions);
Unit
HPDFDoc
Values
| Value | Meaning |
|---|---|
nttDests | The /Dests tree of named destinations |
nttJavaScript | The /JavaScript tree of names defined at document level |
nttEmbeddedFiles | The /EmbeddedFiles tree of names for embedded files |
nttPages | The /Pages tree of named pages |
nttTemplates | The /Templates tree of template names |
nttIDs | The /IDs tree of identifier names |
nttURLs | The /URLs tree of URL aliases |
nttAlternatePresentations | The /AlternatePresentations tree |
nttRenditions | The /Renditions tree of rendition names |
Usage notes
- Each value matches the dictionary key used when looking the tree up under the catalog /Names dictionary (Dests, JavaScript, EmbeddedFiles, Pages, Templates, IDs, URLs, AlternatePresentations, Renditions)
- Pass a value of this type to THotPDF.GetLoadedNameTreeRootCount, which returns the number of name-value entries in that tree, or 0 should the document have no such tree
- Name trees store their entries as a /Names array of alternating keys and values, so the count is the length of the array divided by two