Home » pdfbox-1.1.0-src » org.apache.pdfbox.pdmodel » [javadoc | source]
org.apache.pdfbox.pdmodel
public class: PDDocumentCatalog [javadoc | source]
java.lang.Object
   org.apache.pdfbox.pdmodel.PDDocumentCatalog

All Implemented Interfaces:
    COSObjectable

This class represents the acroform of a PDF document.
Field Summary
public static final  String PAGE_MODE_USE_NONE    Page mode where neither the outline nor the thumbnails are displayed. 
public static final  String PAGE_MODE_USE_OUTLINES    Show bookmarks when pdf is opened. 
public static final  String PAGE_MODE_USE_THUMBS    Show thumbnails when pdf is opened. 
public static final  String PAGE_MODE_FULL_SCREEN    Full screen mode with no menu bar, window controls. 
public static final  String PAGE_MODE_USE_OPTIONAL_CONTENT    Optional content group panel is visible when opened. 
public static final  String PAGE_MODE_USE_ATTACHMENTS    Attachments panel is visible. 
public static final  String PAGE_LAYOUT_SINGLE_PAGE    Display one page at a time. 
public static final  String PAGE_LAYOUT_ONE_COLUMN    Display the pages in one column. 
public static final  String PAGE_LAYOUT_TWO_COLUMN_LEFT    Display the pages in two columns, with odd numbered pagse on the left. 
public static final  String PAGE_LAYOUT_TWO_COLUMN_RIGHT    Display the pages in two columns, with odd numbered pagse on the right. 
public static final  String PAGE_LAYOUT_TWO_PAGE_LEFT    Display the pages two at a time, with odd-numbered pages on the left.
    since: PDF - Version 1.5
 
public static final  String PAGE_LAYOUT_TWO_PAGE_RIGHT    Display the pages two at a time, with odd-numbered pages on the right.
    since: PDF - Version 1.5
 
Constructor:
 public PDDocumentCatalog(PDDocument doc) 
    Constructor.
    Parameters:
    doc - The document that this catalog is part of.
 public PDDocumentCatalog(PDDocument doc,
    COSDictionary rootDictionary) 
    Constructor.
    Parameters:
    doc - The document that this catalog is part of.
    rootDictionary - The root dictionary that this object wraps.
Method from org.apache.pdfbox.pdmodel.PDDocumentCatalog Summary:
getAcroForm,   getActions,   getAllPages,   getCOSDictionary,   getCOSObject,   getDocumentOutline,   getLanguage,   getMarkInfo,   getMetadata,   getNames,   getOpenAction,   getPageLabels,   getPageLayout,   getPageMode,   getPages,   getStructureTreeRoot,   getThreads,   getURI,   getViewerPreferences,   setAcroForm,   setActions,   setDocumentOutline,   setLanguage,   setMarkInfo,   setMetadata,   setNames,   setOpenAction,   setPageLabels,   setPageLayout,   setPageMode,   setStructureTreeRoot,   setThreads,   setURI,   setViewerPreferences
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.pdfbox.pdmodel.PDDocumentCatalog Detail:
 public PDAcroForm getAcroForm() 
    This will get the documents acroform. This will return null if no acroform is part of the document.
 public PDDocumentCatalogAdditionalActions getActions() 
 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.
 public COSDictionary getCOSDictionary() 
    Convert this standard java object to a COS object.
 public COSBase getCOSObject() 
    Convert this standard java object to a COS object.
 public PDDocumentOutline getDocumentOutline() 
    Get the outline associated with this document or null if it does not exist.
 public String getLanguage() 
    The language for the document.
 public PDMarkInfo getMarkInfo() 
    Get info about doc's usage of tagged features. This will return null if there is no information.
 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.
 public PDDocumentNameDictionary getNames() 
 public PDDestinationOrAction getOpenAction() throws IOException 
    Get the Document Open Action for this object.
 public PDPageLabels getPageLabels() throws IOException 
    Returns the page labels descriptor of the document.
 public String getPageLayout() 
    Set the page layout, see the PAGE_LAYOUT_XXX constants.
 public String getPageMode() 
    Set the page display mode, see the PAGE_MODE_XXX constants.
 public PDPageNode getPages() 
    This will get the root node for the pages.
 public PDStructureTreeRoot getStructureTreeRoot() 
    Get the document's structure tree root.
 public List getThreads() 
    Get the list threads for this pdf document.
 public PDURIDictionary getURI() 
    Document level information in the URI.
 public PDViewerPreferences getViewerPreferences() 
    Get the viewer preferences associated with this document or null if they do not exist.
 public  void setAcroForm(PDAcroForm acro) 
    Set the acro form for this catalog.
 public  void setActions(PDDocumentCatalogAdditionalActions actions) 
    Set the additional actions for the document.
 public  void setDocumentOutline(PDDocumentOutline outlines) 
    Set the document outlines.
 public  void setLanguage(String language) 
    Set the Language for the document.
 public  void setMarkInfo(PDMarkInfo markInfo) 
    Set information about the doc's usage of tagged features.
 public  void setMetadata(PDMetadata meta) 
    Set the metadata for this object. This can be null.
 public  void setNames(PDDocumentNameDictionary names) 
    Set the names dictionary for the document.
 public  void setOpenAction(PDDestinationOrAction action) 
    Set the Document Open Action for this object.
 public  void setPageLabels(PDPageLabels labels) 
    Set the page label descriptor for the document.
 public  void setPageLayout(String layout) 
    Set the page layout. See the PAGE_LAYOUT_XXX constants for valid values.
 public  void setPageMode(String mode) 
    Set the page mode. See the PAGE_MODE_XXX constants for valid values.
 public  void setStructureTreeRoot(PDStructureTreeRoot treeRoot) 
    Set the document's structure tree root.
 public  void setThreads(List threads) 
    Set the list of threads for this pdf document.
 public  void setURI(PDURIDictionary uri) 
    Set the document level uri.
 public  void setViewerPreferences(PDViewerPreferences prefs) 
    Set the viewer preferences.