CreateNumberTree(IEnumerable<KeyValuePair<Int32, CosObject>>) Method

Definition

Namespace Broadside
Assembly Broadside.dll

Builds a new number tree holding entries, balanced, with every node a new indirect object.

public PdfNumberTree CreateNumberTree(IEnumerable<KeyValuePair<int, CosObject>> entries)

Parameters

entries
IEnumerable<KeyValuePair<Int32, CosObject>>

The keys and values, in any order; each key once. Values are stored as given.

Returns

PdfNumberTree
A view of the new tree. Its RootReference is what the owner (the catalog's PageLabels, a structure tree root's ParentTree, …) refers to.

Remarks

ISO 32000-2 §7.9.7, Table 37 (PDF 1.3). Keys are sorted in ascending numerical order and spread over the tree as CreateNameTree(IEnumerable<KeyValuePair<CosString, CosObject>>) spreads name-tree keys, in Nums arrays.