List of usage examples for org.apache.pdfbox.pdmodel.interactive.viewerpreferences PDViewerPreferences PDViewerPreferences
public PDViewerPreferences(COSDictionary dic)
From source file:org.pdfsam.pdfbox.component.PDDocumentHandler.java
License:Open Source License
/** * @return the view preferences for the underlying {@link PDDocument} or an empty dictionary if no ViewerPreferences is dictionary is found. *///w w w.ja v a 2s .com public PDViewerPreferences getViewerPreferences() { PDViewerPreferences retVal = document.getDocumentCatalog().getViewerPreferences(); if (retVal == null) { retVal = new PDViewerPreferences(new COSDictionary()); } return retVal; }