public class PdfViewerPreferencesImp extends Object implements PdfViewerPreferences
| Constructor and Description |
|---|
PdfViewerPreferencesImp() |
| Modifier and Type | Method and Description |
|---|---|
void |
addToCatalog(PdfDictionary catalog)
Adds the viewer preferences defined in the preferences parameter to a
PdfDictionary (more specifically the root or catalog of a PDF file).
|
void |
addViewerPreference(PdfName key,
PdfObject value)
Sets the viewer preferences for printing.
|
int |
getPageLayoutAndMode()
Returns the page layout and page mode value.
|
PdfDictionary |
getViewerPreferences()
Returns the viewer preferences.
|
static PdfViewerPreferencesImp |
getViewerPreferences(PdfDictionary catalog) |
void |
setViewerPreferences(int preferences)
Sets the viewer preferences as the sum of several constants.
|
public int getPageLayoutAndMode()
public PdfDictionary getViewerPreferences()
public void setViewerPreferences(int preferences)
setViewerPreferences in interface PdfViewerPreferencespreferences - the viewer preferencesPdfViewerPreferences.setViewerPreferences(int)public void addViewerPreference(PdfName key, PdfObject value)
addViewerPreference in interface PdfViewerPreferenceskey - the name of the viewer preferencevalue - the value of the viewer preferencePdfViewerPreferences.setViewerPreferences(int)public void addToCatalog(PdfDictionary catalog)
catalog - Catalog to setpublic static PdfViewerPreferencesImp getViewerPreferences(PdfDictionary catalog)
Copyright © 2021. All rights reserved.