PAGE_LAYOUT_ONE_COLUMN
public static final String PAGE_LAYOUT_ONE_COLUMN
Display the pages in one column.
PAGE_LAYOUT_SINGLE_PAGE
public static final String PAGE_LAYOUT_SINGLE_PAGE
Display one page at a time.
PAGE_LAYOUT_TWO_COLUMN_LEFT
public static final String PAGE_LAYOUT_TWO_COLUMN_LEFT
Display the pages in two columns, with odd numbered pagse on the left.
PAGE_LAYOUT_TWO_COLUMN_RIGHT
public static final String PAGE_LAYOUT_TWO_COLUMN_RIGHT
Display the pages in two columns, with odd numbered pagse on the right.
PAGE_LAYOUT_TWO_PAGE_LEFT
public static final String PAGE_LAYOUT_TWO_PAGE_LEFT
Display the pages two at a time, with odd-numbered pages on the left.
PAGE_LAYOUT_TWO_PAGE_RIGHT
public static final String PAGE_LAYOUT_TWO_PAGE_RIGHT
Display the pages two at a time, with odd-numbered pages on the right.
PAGE_MODE_FULL_SCREEN
public static final String PAGE_MODE_FULL_SCREEN
Full screen mode with no menu bar, window controls.
PAGE_MODE_USE_ATTACHMENTS
public static final String PAGE_MODE_USE_ATTACHMENTS
Attachments panel is visible.
PAGE_MODE_USE_NONE
public static final String PAGE_MODE_USE_NONE
Page mode where neither the outline nor the thumbnails
are displayed.
PAGE_MODE_USE_OPTIONAL_CONTENT
public static final String PAGE_MODE_USE_OPTIONAL_CONTENT
Optional content group panel is visible when opened.
PAGE_MODE_USE_OUTLINES
public static final String PAGE_MODE_USE_OUTLINES
Show bookmarks when pdf is opened.
PAGE_MODE_USE_THUMBS
public static final String PAGE_MODE_USE_THUMBS
Show thumbnails when pdf is opened.
getAcroForm
public PDAcroForm getAcroForm()
This will get the documents acroform. This will return null if
no acroform is part of the document.
getAllPages
public List getAllPages()
The PDF document contains a hierarchical structure of PDPageNode and PDPages, which
is mostly just a way to store this information. This method will return a flat list
of all PDPage objects in this document.
- A list of PDPage objects.
getCOSDictionary
public COSDictionary getCOSDictionary()
Convert this standard java object to a COS object.
- The cos object that matches this Java 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.
getDocumentOutline
public PDDocumentOutline getDocumentOutline()
Get the outline associated with this document or null if it
does not exist.
getLanguage
public String getLanguage()
The language for the document.
- The language for the document.
getMarkInfo
public PDMarkInfo getMarkInfo()
Get info about doc's usage of tagged features. This will return
null if there is no information.
getMetadata
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.
- The metadata for this object.
getOpenAction
public PDDestinationOrAction getOpenAction()
throws IOException
Get the Document Open Action for this object.
- The action to perform when the document is opened.
getPageLayout
public String getPageLayout()
Set the page layout, see the PAGE_LAYOUT_XXX constants.
- A string representing the page layout.
getPageMode
public String getPageMode()
Set the page display mode, see the PAGE_MODE_XXX constants.
- A string representing the page mode.
getPages
public PDPageNode getPages()
This will get the root node for the pages.
getStructureTreeRoot
public PDStructureTreeRoot getStructureTreeRoot()
Get the document's structure tree root.
- The document's structure tree root or null if none exists.
getThreads
public List getThreads()
Get the list threads for this pdf document.
- A list of PDThread objects.
getURI
public PDActionURI getURI()
Document level information in the URI.
getViewerPreferences
public PDViewerPreferences getViewerPreferences()
Get the viewer preferences associated with this document or null if they
do not exist.
- The document's viewer preferences.
setAcroForm
public void setAcroForm(PDAcroForm acro)
Set the acro form for this catalog.
acro
- The new acro form.
setActions
public void setActions(PDDocumentCatalogAdditionalActions actions)
Set the additional actions for the document.
actions
- The actions that are associated with this document.
setDocumentOutline
public void setDocumentOutline(PDDocumentOutline outlines)
Set the document outlines.
outlines
- The new document outlines.
setLanguage
public void setLanguage(String language)
Set the Language for the document.
language
- The new document language.
setMarkInfo
public void setMarkInfo(PDMarkInfo markInfo)
Set information about the doc's usage of tagged features.
markInfo
- The new MarkInfo data.
setMetadata
public void setMetadata(PDMetadata meta)
Set the metadata for this object. This can be null.
meta
- The meta data for this object.
setNames
public void setNames(PDDocumentNameDictionary names)
Set the names dictionary for the document.
names
- The names dictionary that is associated with this document.
setOpenAction
public void setOpenAction(PDDestinationOrAction action)
Set the Document Open Action for this object.
action
- The action you want to perform.
setPageLayout
public void setPageLayout(String layout)
Set the page layout. See the PAGE_LAYOUT_XXX constants for valid values.
layout
- The new page layout.
setPageMode
public void setPageMode(String mode)
Set the page mode. See the PAGE_MODE_XXX constants for valid values.
mode
- The new page mode.
setStructureTreeRoot
public void setStructureTreeRoot(PDStructureTreeRoot treeRoot)
Set the document's structure tree root.
treeRoot
- The new structure tree.
setThreads
public void setThreads(List threads)
Set the list of threads for this pdf document.
threads
- The list of threads, or null to clear it.
setURI
public void setURI(PDActionURI uri)
Set the document level uri.
uri
- The new document level uri.
setViewerPreferences
public void setViewerPreferences(PDViewerPreferences prefs)
Set the viewer preferences.
prefs
- The new viewer preferences.