iText 8.0.5 API
iText.Kernel.Pdf.PdfNameTree Class Reference
Inheritance diagram for iText.Kernel.Pdf.PdfNameTree:
iText.Kernel.Pdf.GenericNameTree iText.Kernel.Pdf.IPdfNameTreeAccess

Public Member Functions

  PdfNameTree (PdfCatalog catalog, PdfName treeType)
  Creates the NameTree of current Document More...
 
virtual IDictionary< PdfString, PdfObject GetNames ()
  Retrieves the names stored in the name tree More...
 
- Public Member Functions inherited from iText.Kernel.Pdf.GenericNameTree
virtual void  AddEntry (PdfString key, PdfObject value)
  Add an entry to the name tree. More...
 
virtual void  AddEntry (String key, PdfObject value)
  Add an entry to the name tree. More...
 
virtual void  RemoveEntry (PdfString key)
  Remove an entry from the name tree. More...
 
virtual PdfObject  GetEntry (PdfString key)
  Retrieve an entry from the name tree. More...
 
virtual PdfObject  GetEntry (String key)
  Retrieve an entry from the name tree. More...
 
virtual ICollection< PdfString GetKeys ()
  Retrieve the set of keys in the name tree. More...
 
virtual bool  IsModified ()
  Check if the tree is modified. More...
 
virtual void  SetModified ()
  Sets the modified flag to true. More...
 
virtual PdfDictionary  BuildTree ()
  Build a PdfDictionary containing the name tree. More...
 

Additional Inherited Members

- Package Functions inherited from iText.Kernel.Pdf.GenericNameTree
  GenericNameTree (PdfDocument pdfDoc)
  Creates a name tree structure in the current document. More...
 
virtual void  AddEntry (PdfString key, PdfObject value, Action< PdfDocument > onErrorAction)
  Add an entry to the name tree. More...
 
void  SetItems (LinkedDictionary< PdfString, PdfObject > items)
 
LinkedDictionary< PdfString, PdfObject GetItems ()
 
- Static Package Functions inherited from iText.Kernel.Pdf.GenericNameTree
static LinkedDictionary< PdfString, PdfObject ReadTree (PdfDictionary dictionary)
  Read the entries in a name tree structure from a dictionary object into a linked hash map with fixed order. 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

◆ GetNames()

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

Retrieves the names stored in the name tree

Retrieves the names stored in the name tree

When non-textual names are required, use

Returns
Map containing the PdfObjects stored in the tree