Class PdfViewerPreferencesImp
java.lang.Object
com.aowagie.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.
-
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.
-
Constructor Details
-
PdfViewerPreferencesImp
public PdfViewerPreferencesImp()
-
-
Method Details
-
getPageLayoutAndMode
public int getPageLayoutAndMode()Returns the page layout and page mode value.- Returns:
- Layout and mode.
-
getViewerPreferences
-
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- Catalog to set
-
getViewerPreferences
-