public class PdfNameTree extends Object implements Serializable
Constructor and Description |
---|
PdfNameTree(PdfCatalog catalog, PdfName treeType)
Creates the NameTree of current Document
|
Modifier and Type | Method and Description |
---|---|
void |
addEntry(String key, PdfObject value)
Add an entry to the name tree
|
PdfDictionary |
buildTree()
Build a PdfDictionary containing the name tree
|
Map<String,PdfObject> |
getNames()
Retrieves the names stored in the name tree
|
boolean |
isModified() |
void |
setModified()
Sets the modified flag to true.
|
public PdfNameTree(PdfCatalog catalog, PdfName treeType)
catalog
- Document catalog
treeType
- the type of tree. Dests Tree, AP Tree etc.
public Map<String,PdfObject> getNames()
public void addEntry(String key, PdfObject value)
key
- key of the entry
value
- object to add
public boolean isModified()
public void setModified()
public PdfDictionary buildTree()
Copyright © 1998–2023 iText Group NV. All rights reserved.