Module com.github.librepdf.openpdf
Package com.lowagie.text.pdf.internal
Class PdfViewerPreferencesImp
java.lang.Object
com.lowagie.text.pdf.internal.PdfViewerPreferencesImp
- All Implemented Interfaces:
PdfViewerPreferences
Deprecated.
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[]Deprecated.A series of viewer preferences.static final PdfName[]Deprecated.A series of viewer preferences.static final PdfName[]Deprecated.A series of viewer preferences.static final PdfName[]Deprecated.A series of viewer preferences.static final PdfName[]Deprecated.A series of viewer preferencesstatic final PdfName[]Deprecated. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddToCatalog(PdfDictionary catalog) Deprecated.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) Deprecated.Sets the viewer preferences for printing.intDeprecated.Returns the page layout and page mode value.Deprecated.Returns the viewer preferences.static PdfViewerPreferencesImpgetViewerPreferences(PdfDictionary catalog) Deprecated.voidsetViewerPreferences(int preferences) Deprecated.Sets the viewer preferences as the sum of several constants.
-
Field Details
-
VIEWER_PREFERENCES
Deprecated. -
NONFULLSCREENPAGEMODE_PREFERENCES
Deprecated.A series of viewer preferences. -
DIRECTION_PREFERENCES
Deprecated.A series of viewer preferences. -
PAGE_BOUNDARIES
Deprecated.A series of viewer preferences. -
PRINTSCALING_PREFERENCES
Deprecated.A series of viewer preferences -
DUPLEX_PREFERENCES
Deprecated.A series of viewer preferences.
-
-
Constructor Details
-
PdfViewerPreferencesImp
public PdfViewerPreferencesImp()Deprecated.
-
-
Method Details
-
getViewerPreferences
Deprecated. -
getPageLayoutAndMode
public int getPageLayoutAndMode()Deprecated.Returns the page layout and page mode value.- Returns:
- an int that hold the viewer preferences for the page layout and page mode.
-
getViewerPreferences
Deprecated.Returns the viewer preferences.- Returns:
- a PdfDictionary containing the viewer's preferences.
-
setViewerPreferences
public void setViewerPreferences(int preferences) Deprecated.Sets the viewer preferences as the sum of several constants.- Specified by:
setViewerPreferencesin interfacePdfViewerPreferences- Parameters:
preferences- the viewer preferences- See Also:
-
addViewerPreference
Deprecated.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
Deprecated.Adds the viewer preferences defined in the preferences parameter to a PdfDictionary (more specifically the root or catalog of a PDF file).- Parameters:
catalog- The PdfDictionary to add the viewer preferences to
-