| Modifier and Type | Field and Description |
|---|---|
| private PDDocumentFixup | |
| private PDAcroForm | |
| private final PDDocument | |
| private static final Log | |
| private final COSDictionary |
| Access | Constructor and Description |
|---|---|
| protected | |
| protected | PDDocumentCatalog(PDDocument
The document that this catalog is part of. doc, COSDictionary The root dictionary that this object wraps. rootDictionary)Constructor. |
| Modifier and Type | Method and Description |
|---|---|
| public void | addOutputIntent(PDOutputIntent
the OutputIntent to add. outputIntent)Add an OutputIntent to the list. |
| public PDPageDestination | Returns: a PDPageDestination object or null if not found.the named destination. namedDest)Find the page destination from a named destination. |
| public PDAcroForm | |
| public PDAcroForm | Returns: The document's AcroForm.the fix up action or null acroFormFixup)Get the documents AcroForm. |
| public PDDocumentCatalogAdditionalActions | |
| public COSDictionary | Returns: The cos object that matches this Java object.Implements org. Convert this standard java object to a COS object. |
| public PDDocumentNameDestinationDictionary | |
| public PDDocumentOutline | Returns: The document's outline.Get the outline associated with this document or null if it does not exist. |
| public String | Returns: the language of the document if present, otherwise nullReturns the language for the document, or null. |
| public PDMarkInfo | |
| public PDMetadata | Returns: The metadata for this object.Get the metadata that is part of the document catalog. |
| public PDDocumentNameDictionary | |
| public PDOptionalContentProperties | Returns: the optional properties dictionary or null if it is not presentGet the optional content properties dictionary associated with this document. |
| public PDDestinationOrAction | Returns: The action to perform when the document is opened.Get the Document Open Action for this object. |
| public List | Returns: The list of PDOutputIntent, never null.Get the list of OutputIntents defined in the document. |
| public PDPageLabels | Returns: the page labels descriptor of the document.Returns the page labels descriptor of the document. |
| public PageLayout | Returns: the PageLayout of the document, if not present PageLayout.SINGLE_PAGE is returnedReturns the page layout. |
| public PageMode | Returns: the PageMode of the document, if not present PageMode.USE_NONE is returnedReturns the page display mode. |
| public PDPageTree | Returns: PDPageTree providing all pages of the documentReturns all pages in the document, as a page tree. |
| public PDStructureTreeRoot | Returns: the structure tree root if present, otherwise nullGet the document's structure tree root, or null if none exists. |
| public List | |
| public PDURIDictionary | |
| public String | Returns: the PDF version (e.g. "1.4")Returns the PDF specification version this document conforms to. |
| public PDViewerPreferences | Returns: The document's viewer preferences.Get the viewer preferences associated with this document or null if they do not exist. |
| public void | |
| public void | setActions(PDDocumentCatalogAdditionalActions
The actions that are associated with this document. actions)Sets the additional actions for the document. |
| public void | |
| public void | |
| public void | setMarkInfo(PDMarkInfo
The new MarkInfo data. markInfo)Set information about the doc's usage of tagged features. |
| public void | |
| public void | setNames(PDDocumentNameDictionary
The names dictionary that is associated with this document. names)Sets the names dictionary for the document. |
| public void | setOCProperties(PDOptionalContentProperties
the optional properties dictionary ocProperties)Sets the optional content properties dictionary. |
| public void | setOpenAction(PDDestinationOrAction
The action you want to perform. action)Sets the Document Open Action for this object. |
| public void | setOutputIntents(List<PDOutputIntent>
the list of OutputIntents, if the list is empty all OutputIntents are
removed. outputIntents)Replace the list of OutputIntents of the document. |
| public void | setPageLabels(PDPageLabels
the new page label descriptor to set. labels)Sets the page label descriptor for the document. |
| public void | |
| public void | |
| public void | setStructureTreeRoot(PDStructureTreeRoot
The new structure tree. treeRoot)Sets the document's structure tree root. |
| public void | setThreads(List<PDThread>
The list of threads, or null to clear it. threads)Sets the list of threads for this pdf document. |
| public void | |
| public void | setVersion(String
the PDF version (e.g. "1.4") version)Sets the PDF specification version this document conforms to. |
| public void | setViewerPreferences(PDViewerPreferences
The new viewer preferences. prefs)Sets the viewer preferences. |
| acroFormFixupApplied | back to summary |
|---|---|
| private PDDocumentFixup acroFormFixupApplied | |
| cachedAcroForm | back to summary |
|---|---|
| private PDAcroForm cachedAcroForm | |
| document | back to summary |
|---|---|
| private final PDDocument document | |
| LOG | back to summary |
|---|---|
| private static final Log LOG | |
| root | back to summary |
|---|---|
| private final COSDictionary root | |
| PDDocumentCatalog | back to summary |
|---|---|
| protected PDDocumentCatalog(PDDocument doc) Constructor. Internal PDFBox use only! If you need to get the document catalog, call
| |
| PDDocumentCatalog | back to summary |
|---|---|
| protected PDDocumentCatalog(PDDocument doc, COSDictionary rootDictionary) Constructor. Internal PDFBox use only! If you need to get the document catalog, call
| |
| addOutputIntent | back to summary |
|---|---|
| public void addOutputIntent(PDOutputIntent outputIntent) Add an OutputIntent to the list. If there is not OutputIntent, the list is created and the first element added.
| |
| findNamedDestinationPage | back to summary |
|---|---|
| public PDPageDestination findNamedDestinationPage(PDNamedDestination namedDest) throws IOException Find the page destination from a named destination.
| |
| getAcroForm | back to summary |
|---|---|
| public PDAcroForm getAcroForm() Get the documents AcroForm. This will return null if no AcroForm is part of the document.
| |
| getAcroForm | back to summary |
|---|---|
| public PDAcroForm getAcroForm(PDDocumentFixup acroFormFixup) Get the documents AcroForm. This will return null if no AcroForm is part of the document.
Dependent on setting
| |
| getActions | back to summary |
|---|---|
public PDDocumentCatalogAdditionalActions getActions()
| |
| getCOSObject | back to summary |
|---|---|
| public COSDictionary getCOSObject() Implements org. Convert this standard java object to a COS object.
| |
| getDests | back to summary |
|---|---|
public PDDocumentNameDestinationDictionary getDests()
| |
| getDocumentOutline | back to summary |
|---|---|
| public PDDocumentOutline getDocumentOutline() Get the outline associated with this document or null if it does not exist.
| |
| getLanguage | back to summary |
|---|---|
| public String getLanguage() Returns the language for the document, or null.
| |
| getMarkInfo | back to summary |
|---|---|
| public PDMarkInfo getMarkInfo() Get info about doc's usage of tagged features. This will return null if there is no information.
| |
| getMetadata | back to summary |
|---|---|
| public PDMetadata getMetadata() Get the metadata that is part of the document catalog. This will return null if there is no meta data for this object.
| |
| getNames | back to summary |
|---|---|
public PDDocumentNameDictionary getNames()
| |
| getOCProperties | back to summary |
|---|---|
| public PDOptionalContentProperties getOCProperties() Get the optional content properties dictionary associated with this document.
| |
| getOpenAction | back to summary |
|---|---|
| public PDDestinationOrAction getOpenAction() throws IOException Get the Document Open Action for this object.
| |
| getOutputIntents | back to summary |
|---|---|
| public List Get the list of OutputIntents defined in the document.
| |
| getPageLabels | back to summary |
|---|---|
| public PDPageLabels getPageLabels() throws IOException Returns the page labels descriptor of the document.
| |
| getPageLayout | back to summary |
|---|---|
| public PageLayout getPageLayout() Returns the page layout.
| |
| getPageMode | back to summary |
|---|---|
| public PageMode getPageMode() Returns the page display mode.
| |
| getPages | back to summary |
|---|---|
| public PDPageTree getPages() Returns all pages in the document, as a page tree.
| |
| getStructureTreeRoot | back to summary |
|---|---|
| public PDStructureTreeRoot getStructureTreeRoot() Get the document's structure tree root, or null if none exists.
| |
| getThreads | back to summary |
|---|---|
| public List Returns the document's article threads. | |
| getURI | back to summary |
|---|---|
| public PDURIDictionary getURI() Returns the document-level URI.
| |
| getVersion | back to summary |
|---|---|
| public String getVersion() Returns the PDF specification version this document conforms to.
| |
| getViewerPreferences | back to summary |
|---|---|
| public PDViewerPreferences getViewerPreferences() Get the viewer preferences associated with this document or null if they do not exist.
| |
| setAcroForm | back to summary |
|---|---|
| public void setAcroForm(PDAcroForm acroForm) Sets the AcroForm for this catalog.
| |
| setActions | back to summary |
|---|---|
| public void setActions(PDDocumentCatalogAdditionalActions actions) Sets the additional actions for the document.
| |
| setDocumentOutline | back to summary |
|---|---|
| public void setDocumentOutline(PDDocumentOutline outlines) Sets the document outlines.
| |
| setLanguage | back to summary |
|---|---|
| public void setLanguage(String language) Sets the Language for the document.
| |
| setMarkInfo | back to summary |
|---|---|
| public void setMarkInfo(PDMarkInfo markInfo) Set information about the doc's usage of tagged features.
| |
| setMetadata | back to summary |
|---|---|
| public void setMetadata(PDMetadata meta) Sets the metadata for this object. This can be null.
| |
| setNames | back to summary |
|---|---|
| public void setNames(PDDocumentNameDictionary names) Sets the names dictionary for the document.
| |
| setOCProperties | back to summary |
|---|---|
| public void setOCProperties(PDOptionalContentProperties ocProperties) Sets the optional content properties dictionary. The document version is incremented to 1.5 if lower.
| |
| setOpenAction | back to summary |
|---|---|
| public void setOpenAction(PDDestinationOrAction action) Sets the Document Open Action for this object.
| |
| setOutputIntents | back to summary |
|---|---|
| public void setOutputIntents(List<PDOutputIntent> outputIntents) Replace the list of OutputIntents of the document.
| |
| setPageLabels | back to summary |
|---|---|
| public void setPageLabels(PDPageLabels labels) Sets the page label descriptor for the document.
| |
| setPageLayout | back to summary |
|---|---|
| public void setPageLayout(PageLayout layout) Sets the page layout.
| |
| setPageMode | back to summary |
|---|---|
| public void setPageMode(PageMode mode) Sets the page mode.
| |
| setStructureTreeRoot | back to summary |
|---|---|
| public void setStructureTreeRoot(PDStructureTreeRoot treeRoot) Sets the document's structure tree root.
| |
| setThreads | back to summary |
|---|---|
| public void setThreads(List<PDThread> threads) Sets the list of threads for this pdf document. | |
| setURI | back to summary |
|---|---|
| public void setURI(PDURIDictionary uri) Sets the document level URI.
| |
| setVersion | back to summary |
|---|---|
| public void setVersion(String version) Sets the PDF specification version this document conforms to.
| |
| setViewerPreferences | back to summary |
|---|---|
| public void setViewerPreferences(PDViewerPreferences prefs) Sets the viewer preferences.
| |