Package com.itextpdf.kernel.pdf
Class PdfNameTree
- java.lang.Object
-
- com.itextpdf.kernel.pdf.GenericNameTree
-
- com.itextpdf.kernel.pdf.PdfNameTree
-
- All Implemented Interfaces:
IPdfNameTreeAccess
public class PdfNameTree extends GenericNameTree
-
-
Field Summary
Fields Modifier and Type Field Description private PdfCatalogcatalogprivate PdfNametreeType
-
Constructor Summary
Constructors Constructor Description PdfNameTree(PdfCatalog catalog, PdfName treeType)Creates the NameTree of current Document
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description private static PdfArraygetDestArray(PdfObject obj)java.util.Map<PdfString,PdfObject>getNames()Retrieves the names stored in the name treeprivate voidinsertDestsEntriesFromCatalog(java.util.Map<PdfString,PdfObject> items)private static voidnormalizeDestinations(java.util.Map<PdfString,PdfObject> items)private java.util.LinkedHashMap<PdfString,PdfObject>readFromCatalog()-
Methods inherited from class com.itextpdf.kernel.pdf.GenericNameTree
addEntry, addEntry, addEntry, buildTree, getEntry, getEntry, getItems, getKeys, isModified, readTree, removeEntry, setItems, setModified
-
-
-
-
Field Detail
-
catalog
private final PdfCatalog catalog
-
treeType
private final PdfName treeType
-
-
Constructor Detail
-
PdfNameTree
public PdfNameTree(PdfCatalog catalog, PdfName treeType)
Creates the NameTree of current Document- Parameters:
catalog- Document catalogtreeType- 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 treeWhen non-textual names are required, use
- Returns:
- Map containing the PdfObjects stored in the tree
-
normalizeDestinations
private static void normalizeDestinations(java.util.Map<PdfString,PdfObject> items)
-
insertDestsEntriesFromCatalog
private void insertDestsEntriesFromCatalog(java.util.Map<PdfString,PdfObject> items)
-
-