Package com.lowagie.text.pdf.internal
Class PdfViewerPreferencesImp
java.lang.Object
com.lowagie.text.pdf.internal.PdfViewerPreferencesImp
- All Implemented Interfaces:
PdfViewerPreferences
Stores the information concerning viewer preferences,
and contains the business logic that allows you to set viewer preferences.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final PdfName[]A series of viewer preferences.static final PdfName[]A series of viewer preferences.static final PdfName[]A series of viewer preferences.static final PdfName[]A series of viewer preferences.static final PdfName[]A series of viewer preferencesstatic final PdfName[] -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddToCatalog(PdfDictionary catalog) Adds the viewer preferences defined in the preferences parameter to a PdfDictionary (more specifically the root or catalog of a PDF file).voidaddViewerPreference(PdfName key, PdfObject value) Sets the viewer preferences for printing.intReturns the page layout and page mode value.Returns the viewer preferences.static PdfViewerPreferencesImpgetViewerPreferences(PdfDictionary catalog) voidsetViewerPreferences(int preferences) Sets the viewer preferences as the sum of several constants.
-
Field Details
-
VIEWER_PREFERENCES
-
NONFULLSCREENPAGEMODE_PREFERENCES
A series of viewer preferences. -
DIRECTION_PREFERENCES
A series of viewer preferences. -
PAGE_BOUNDARIES
A series of viewer preferences. -
PRINTSCALING_PREFERENCES
A series of viewer preferences -
DUPLEX_PREFERENCES
A series of viewer preferences.
-
-
Constructor Details
-
PdfViewerPreferencesImp
public PdfViewerPreferencesImp()
-
-
Method Details
-
getPageLayoutAndMode
public int getPageLayoutAndMode()Returns the page layout and page mode value. -
getViewerPreferences
Returns the viewer preferences. -
setViewerPreferences
public void setViewerPreferences(int preferences) Sets the viewer preferences as the sum of several constants.- Specified by:
setViewerPreferencesin interfacePdfViewerPreferences- Parameters:
preferences- the viewer preferences- See Also:
-
addViewerPreference
Sets the viewer preferences for printing.- Specified by:
addViewerPreferencein interfacePdfViewerPreferences- Parameters:
key- the name of the viewer preferencevalue- the value of the viewer preference- See Also:
-
addToCatalog
Adds the viewer preferences defined in the preferences parameter to a PdfDictionary (more specifically the root or catalog of a PDF file).- Parameters:
catalog-
-
getViewerPreferences
-