Class PdfNameTree

java.lang.Object
com.itextpdf.kernel.pdf.PdfNameTree

public class PdfNameTree extends Object
  • Constructor Details

    • 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 Details

    • getNames

      public Map<String,PdfObject> getNames()
      Retrieves the names stored in the name tree
      Returns:
      Map containing the PdfObjects stored in the tree
    • addEntry

      public void addEntry (String key, PdfObject value)
      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

      public PdfDictionary buildTree()
      Build a PdfDictionary containing the name tree
      Returns:
      PdfDictionary containing the name tree