Class PdfNameTree

    • Constructor Detail

      • PdfNameTree

        public PdfNameTree​(PdfCatalog catalog,
                           PdfName treeType)
        Creates the NameTree of current Document
        Parameters:
        catalog - Document catalog
        treeType - the type of tree. Dests Tree, AP Tree etc.
    • Method Detail

      • getNames

        public java.util.Map<PdfString,​PdfObject> getNames()
        Retrieves the names stored in the name tree

        When non-textual names are required, use

        Returns:
        Map containing the PdfObjects stored in the tree
      • readFromCatalog

        private java.util.LinkedHashMap<PdfString,​PdfObject> readFromCatalog()
      • normalizeDestinations

        private static void normalizeDestinations​(java.util.Map<PdfString,​PdfObject> items)
      • insertDestsEntriesFromCatalog

        private void insertDestsEntriesFromCatalog​(java.util.Map<PdfString,​PdfObject> items)