예제 #1
0
 /// <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?>();
 }
예제 #2
0
 /// <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();
 }
예제 #3
0
 public virtual PdfDictionary BuildParentTree()
 {
     return((PdfDictionary)parentTree.BuildTree().MakeIndirect(structTreeRoot.GetDocument()));
 }