Package com.itextpdf.kernel.pdf
Class PdfNameTree
java.lang.Object
com.itextpdf.kernel.pdf.PdfNameTree
-
Constructor Summary
ConstructorDescriptionPdfNameTree
(PdfCatalog catalog, PdfName treeType) Creates the NameTree of current Document -
Method Summary
Modifier and TypeMethodDescriptionvoid
Add an entry to the name treeBuild a PdfDictionary containing the name treegetNames()
Retrieves the names stored in the name treeboolean
void
Sets the modified flag to true.
-
Constructor Details
-
PdfNameTree
Creates the NameTree of current Document- Parameters:
-
catalog
- Document catalog -
treeType
- the type of tree. Dests Tree, AP Tree etc.
-
-
Method Details
-
getNames
Retrieves the names stored in the name tree- Returns:
- Map containing the PdfObjects stored in the tree
-
addEntry
Add an entry to the name tree- Parameters:
-
key
- key of the entry -
value
- object to add
-
isModified
public boolean isModified()- Returns:
- True if the object has been modified, false otherwise.
-
setModified
public void setModified()Sets the modified flag to true. It means that the object has been modified. -
buildTree
Build a PdfDictionary containing the name tree- Returns:
- PdfDictionary containing the name tree
-