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.private intDeprecated.This value will hold the viewer preferences for the page layout and page mode.static final PdfName[]Deprecated.A series of viewer preferencesstatic final PdfName[]Deprecated.private PdfDictionaryDeprecated.This dictionary holds the viewer preferences (other than page layout and page mode).private static final intDeprecated.The mask to decide if a ViewerPreferences dictionary is needed -
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.private intDeprecated.Given a key for a viewer preference (a PdfName object), this method returns the index in the VIEWER_PREFERENCES array.intDeprecated.Returns the page layout and page mode value.Deprecated.Returns the viewer preferences.static PdfViewerPreferencesImpgetViewerPreferences(PdfDictionary catalog) Deprecated.private booleanisPossibleValue(PdfName value, PdfName[] accepted) Deprecated.Checks if some value is valid for a certain key.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
-
PAGE_BOUNDARIES
-
PRINTSCALING_PREFERENCES
-
DUPLEX_PREFERENCES
-
viewerPreferencesMask
private static final int viewerPreferencesMaskDeprecated.The mask to decide if a ViewerPreferences dictionary is needed- See Also:
-
pageLayoutAndMode
private int pageLayoutAndModeDeprecated.This value will hold the viewer preferences for the page layout and page mode. -
viewerPreferences
Deprecated.This dictionary holds the viewer preferences (other than page layout and page mode).
-
-
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:
-
getIndex
Deprecated.Given a key for a viewer preference (a PdfName object), this method returns the index in the VIEWER_PREFERENCES array.- Parameters:
key- a PdfName referring to a viewer preference- Returns:
- an index in the VIEWER_PREFERENCES array
-
isPossibleValue
-
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
-