Returns a view of the name tree whose root node is root.
public PdfNameTree? GetNameTree(CosObject? root)
The root node dictionary, or a reference to it, from this document.
null when root is null or resolves to null, or,
with a diagnostic, to something other than a dictionary.
ISO 32000-2 §7.9.6. For name trees the document model does not expose by name. Views of the same root share one reader, so the index a damaged tree needs is built once per document.