/// <summary>Init ParentTreeHandler.</summary> /// <remarks>Init ParentTreeHandler. On init the parent tree is read and stored in this instance.</remarks> internal ParentTreeHandler(PdfStructTreeRoot structTreeRoot) { this.structTreeRoot = structTreeRoot; parentTree = new PdfNumTree(structTreeRoot.GetDocument().GetCatalog(), PdfName.ParentTree); RegisterAllMcrs(); pageToStructParentsInd = new Dictionary <PdfIndirectReference, int?>(); }
/// <summary>Init ParentTreeHandler.</summary> /// <remarks>Init ParentTreeHandler. On init the parent tree is read and stored in this instance.</remarks> internal ParentTreeHandler(PdfStructTreeRoot structTreeRoot) { this.structTreeRoot = structTreeRoot; parentTree = new PdfNumTree(structTreeRoot.GetDocument().GetCatalog(), PdfName.ParentTree); RegisterAllMcrs(); }
public virtual PdfDictionary BuildParentTree() { return((PdfDictionary)parentTree.BuildTree().MakeIndirect(structTreeRoot.GetDocument())); }