iText 7 7.1.9 API
iText.Kernel.Pdf.PdfNameTree Class Reference

Public Member Functions

  PdfNameTree (PdfCatalog catalog, PdfName treeType)
  Creates the NameTree of current Document More...
 
virtual IDictionary< String, PdfObject GetNames ()
  Retrieves the names stored in the name tree More...
 
virtual void  AddEntry (String key, PdfObject value)
  Add an entry to the name tree More...
 
virtual bool  IsModified ()
 
Returns
True if the object has been modified, false otherwise.

 
virtual void  SetModified ()
  Sets the modified flag to true. More...
 
virtual PdfDictionary  BuildTree ()
  Build a PdfDictionary containing the name tree More...
 

Constructor & Destructor Documentation

◆ PdfNameTree()

iText.Kernel.Pdf.PdfNameTree.PdfNameTree ( PdfCatalog  catalog,
PdfName  treeType 
)
inline

Creates the NameTree of current Document

Parameters
catalog Document catalog
treeType the type of tree. Dests Tree, AP Tree etc.

Member Function Documentation

◆ AddEntry()

virtual void iText.Kernel.Pdf.PdfNameTree.AddEntry ( String  key,
PdfObject  value 
)
inlinevirtual

Add an entry to the name tree

Parameters
key key of the entry
value object to add

◆ BuildTree()

virtual PdfDictionary iText.Kernel.Pdf.PdfNameTree.BuildTree ( )
inlinevirtual

Build a PdfDictionary containing the name tree

Returns
PdfDictionary containing the name tree

◆ GetNames()

virtual IDictionary<String, PdfObject> iText.Kernel.Pdf.PdfNameTree.GetNames ( )
inlinevirtual

Retrieves the names stored in the name tree

Returns
Map containing the PdfObjects stored in the tree

◆ SetModified()

virtual void iText.Kernel.Pdf.PdfNameTree.SetModified ( )
inlinevirtual

Sets the modified flag to true.

Sets the modified flag to true. It means that the object has been modified.