public class PdfViewerPreferencesImp extends Object implements PdfViewerPreferences
| Modifier and Type | Field and Description |
|---|---|
static PdfName[] |
DIRECTION_PREFERENCES
A series of viewer preferences.
|
static PdfName[] |
DUPLEX_PREFERENCES
A series of viewer preferences.
|
static PdfName[] |
NONFULLSCREENPAGEMODE_PREFERENCES
A series of viewer preferences.
|
static PdfName[] |
PAGE_BOUNDARIES
A series of viewer preferences.
|
static PdfName[] |
PRINTSCALING_PREFERENCES
A series of viewer preferences
|
static PdfName[] |
VIEWER_PREFERENCES |
| 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 static final PdfName[] VIEWER_PREFERENCES
public static final PdfName[] NONFULLSCREENPAGEMODE_PREFERENCES
public static final PdfName[] DIRECTION_PREFERENCES
public static final PdfName[] PAGE_BOUNDARIES
public static final PdfName[] PRINTSCALING_PREFERENCES
public static final PdfName[] DUPLEX_PREFERENCES
public int getPageLayoutAndMode()
public PdfDictionary getViewerPreferences()
public void setViewerPreferences(int preferences)
setViewerPreferences in interface PdfViewerPreferences
preferences - the viewer preferences
PdfViewerPreferences.setViewerPreferences(int)
public void addViewerPreference(PdfName key, PdfObject value)
addViewerPreference in interface PdfViewerPreferences
key - the name of the viewer preference
value - the value of the viewer preference
PdfViewerPreferences.setViewerPreferences(int)
public void addToCatalog(PdfDictionary catalog)
catalog -
public static PdfViewerPreferencesImp getViewerPreferences(PdfDictionary catalog)
Copyright © 1998–2021. All rights reserved.