Class PdfViewerPreferencesImp

java.lang.Object
com.aowagie.text.pdf.internal.PdfViewerPreferencesImp
All Implemented Interfaces:
PdfViewerPreferences

public class PdfViewerPreferencesImp extends Object implements PdfViewerPreferences
Stores the information concerning viewer preferences, and contains the business logic that allows you to set viewer preferences.
  • Constructor Details

    • PdfViewerPreferencesImp

      public PdfViewerPreferencesImp()
  • Method Details

    • getPageLayoutAndMode

      public int getPageLayoutAndMode()
      Returns the page layout and page mode value.
      Returns:
      Layout and mode.
    • getViewerPreferences

      public PdfDictionary getViewerPreferences()
      Returns the viewer preferences.
      Returns:
      Dictionary.
    • setViewerPreferences

      public void setViewerPreferences(int preferences)
      Sets the viewer preferences as the sum of several constants.
      Specified by:
      setViewerPreferences in interface PdfViewerPreferences
      Parameters:
      preferences - the viewer preferences
      See Also:
    • addViewerPreference

      public void addViewerPreference(PdfName key, PdfObject value)
      Sets the viewer preferences for printing.
      Specified by:
      addViewerPreference in interface PdfViewerPreferences
      Parameters:
      key - the name of the viewer preference
      value - the value of the viewer preference
      See Also:
    • addToCatalog

      public 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).
      Parameters:
      catalog - Catalog to set
    • getViewerPreferences

      public static PdfViewerPreferencesImp getViewerPreferences(PdfDictionary catalog)