Class 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.
    • Field Detail

      • VIEWER_PREFERENCES

        public static final PdfName[] VIEWER_PREFERENCES
      • NONFULLSCREENPAGEMODE_PREFERENCES

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

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

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

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

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

      • PdfViewerPreferencesImp

        public PdfViewerPreferencesImp()
    • Method Detail

      • getPageLayoutAndMode

        public int getPageLayoutAndMode()
        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()
        Returns the viewer preferences.
        Returns:
        a PdfDictionary containing the viewer's preferences.
      • 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 - The PdfDictionary to add the viewer preferences to