GetNameTree(CosObject?) Method

Definition

Namespace Broadside
Assembly Broadside.dll

Returns a view of the name tree whose root node is root.

public PdfNameTree? GetNameTree(CosObject? root)

Parameters

root
CosObject

The root node dictionary, or a reference to it, from this document.

Returns

PdfNameTree
The tree, read lazily; null when root is null or resolves to null, or, with a diagnostic, to something other than a dictionary.

Remarks

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.