Class PdfViewerPreferencesImp

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

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

    • VIEWER_PREFERENCES

      public static final PdfName[] VIEWER_PREFERENCES
      Deprecated.
    • NONFULLSCREENPAGEMODE_PREFERENCES

      public static final PdfName[] NONFULLSCREENPAGEMODE_PREFERENCES
      Deprecated.
      A series of viewer preferences.
    • DIRECTION_PREFERENCES

      public static final PdfName[] DIRECTION_PREFERENCES
      Deprecated.
      A series of viewer preferences.
    • PAGE_BOUNDARIES

      public static final PdfName[] PAGE_BOUNDARIES
      Deprecated.
      A series of viewer preferences.
    • PRINTSCALING_PREFERENCES

      public static final PdfName[] PRINTSCALING_PREFERENCES
      Deprecated.
      A series of viewer preferences
    • DUPLEX_PREFERENCES

      public static final PdfName[] DUPLEX_PREFERENCES
      Deprecated.
      A series of viewer preferences.
  • Constructor Details

    • PdfViewerPreferencesImp

      public PdfViewerPreferencesImp()
      Deprecated.
  • Method Details

    • getViewerPreferences

      public static PdfViewerPreferencesImp getViewerPreferences(PdfDictionary catalog)
      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

      public PdfDictionary 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:
      setViewerPreferences in interface PdfViewerPreferences
      Parameters:
      preferences - the viewer preferences
      See Also:
    • addViewerPreference

      public void addViewerPreference(PdfName key, PdfObject value)
      Deprecated.
      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)
      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