Пример #1
0
        internal void BuildTree()
        {
            Hashtable numTree = new Hashtable();

            foreach (int i in parentTree.Keys)
            {
                PdfArray ar = (PdfArray)parentTree[i];
                numTree[i] = writer.AddToBody(ar).IndirectReference;
            }
            PdfDictionary dicTree = PdfNumberTree.WriteTree(numTree, writer);

            if (dicTree != null)
            {
                Put(PdfName.PARENTTREE, writer.AddToBody(dicTree).IndirectReference);
            }

            NodeProcess(this, reference);
        }
Пример #2
0
 /** Gets the page label dictionary to insert into the document.
  * @return the page label dictionary
  */
 internal PdfDictionary GetDictionary(PdfWriter writer)
 {
     return(PdfNumberTree.WriteTree(map, writer));
 }