org.pdfbox.pdmodel
Class PDDocumentNameDictionary
java.lang.Object
org.pdfbox.pdmodel.PDDocumentNameDictionary
- COSObjectable
public class PDDocumentNameDictionary
extends java.lang.Object
This class holds all of the name trees that are available at the document level.
PDDocumentNameDictionary
public PDDocumentNameDictionary(PDDocumentCatalog cat)
Constructor.
cat
- The document catalog that this dictionary is part of.
PDDocumentNameDictionary
public PDDocumentNameDictionary(PDDocumentCatalog cat,
COSDictionary names)
Constructor.
cat
- The document that this dictionary is part of.names
- The names dictionary.
getCOSDictionary
public COSDictionary getCOSDictionary()
Convert this standard java object to a COS object.
- The cos dictionary for this object.
getCOSObject
public COSBase getCOSObject()
Convert this standard java object to a COS object.
- getCOSObject in interface COSObjectable
- The cos object that matches this Java object.
getDests
public PDDestinationNameTreeNode getDests()
Get the destination named tree node. The value in this name tree will be PDDestination
objects.
- The destination name tree node.
getEmbeddedFiles
public PDEmbeddedFilesNameTreeNode getEmbeddedFiles()
Get the embedded files named tree node. The value in this name tree will be PDComplexFileSpecification
objects.
- The embedded files name tree node.
setDests
public void setDests(PDDestinationNameTreeNode dests)
Set the named destinations that are associated with this document.
dests
- The destination names.
setEmbeddedFiles
public void setEmbeddedFiles(PDEmbeddedFilesNameTreeNode ef)
Set the named embedded files that are associated with this document.
ef
- The new embedded files