ViewerPreference
Inheritance: java.lang.Object, com.aspose.pdf.facades.ViewerPreference
public final class ViewerPreference extends Object
Describes viewer prefereces (page mode, non full screen page mode, page layout).
Fields
| Field | Description |
|---|---|
| CENTER_WINDOW | A flag specifying whether to position the document’s window in the center of the screen. |
| DIRECTION_L_2_R | Text reading order left to right. |
| DIRECTION_R_2_L | Text reading order right to left. |
| DISPLAY_DOC_TITLE | A flag specifying whether the window’s title bar should display the document title |
| DUPLEX_FLIP_LONG_EDGE | Duplex and flip on the short edge of the sheet. |
| DUPLEX_FLIP_SHORT_EDGE | Duplex and flip on the short edge of the sheet. |
| FIT_WINDOW | A flag specifying whether to resize the document’s window to fit the size of the first displayed page. |
| HIDE_MENUBAR | A flag specifying whether to hide the conforming reader’s menu bar when the document is active. |
| HIDE_TOOLBAR | A flag specifying whether to hide the conforming reader’s tool bars when the document is active. |
| HIDE_WINDOW_UI | A flag specifying whether to hide user interface elements in the document’s window (such as scroll bars and navigation controls), leaving only the document’s contents displayed. |
| NON_FULL_SCREEN_PAGE_MODE_USE_NONE | Neither document outline nor thumbnail images visible. |
| NON_FULL_SCREEN_PAGE_MODE_USE_OC | Optional content group panel visible. |
| NON_FULL_SCREEN_PAGE_MODE_USE_OUTLINES | Document outline visible. |
| NON_FULL_SCREEN_PAGE_MODE_USE_THUMBS | Thumbnail images visible |
| PAGE_LAYOUT_ONE_COLUMN | Display the pages in one column. |
| PAGE_LAYOUT_SINGLE_PAGE | Display one page at a time. |
| PAGE_LAYOUT_TWO_COLUMN_LEFT | Display the pages in two columns, with odd-numbered pages on the right |
| PAGE_LAYOUT_TWO_COLUMN_RIGHT | Display the pages in two columns, with odd-numbered pages on the right. |
| PAGE_MODE_FULL_SCREEN | Full-screen mode, with no menu bar, window controls, or any other window visible. |
| PAGE_MODE_USE_ATTACHMENT | Page mode with attacments. |
| PAGE_MODE_USE_NONE | Neither document outline nor thumbnail images visible |
| PAGE_MODE_USE_OC | Optional content group panel visible. |
| PAGE_MODE_USE_OUTLINES | Document outline visible. |
| PAGE_MODE_USE_THUMBS | Thumbnail images visible. |
| PICK_TRAY_BY_PDF_SIZE | Use the PDF page size to select the input paper tray. |
| PRINT_SCALING_APP_DEFAULT | The conforming reader’s default print scaling. |
| PRINT_SCALING_NONE | No page scaling. |
| SIMPLEX | Print single-sided. |
Constructors
| Constructor | Description |
|---|---|
| ViewerPreference |
CENTER_WINDOW
public static final int CENTER_WINDOW
A flag specifying whether to position the document’s window in the center of the screen.
DIRECTION_L_2_R
public static final int DIRECTION_L_2_R
Text reading order left to right.
DIRECTION_R_2_L
public static final int DIRECTION_R_2_L
Text reading order right to left.
DISPLAY_DOC_TITLE
public static final int DISPLAY_DOC_TITLE
A flag specifying whether the window’s title bar should display the document title
DUPLEX_FLIP_LONG_EDGE
public static final int DUPLEX_FLIP_LONG_EDGE
Duplex and flip on the short edge of the sheet.
DUPLEX_FLIP_SHORT_EDGE
public static final int DUPLEX_FLIP_SHORT_EDGE
Duplex and flip on the short edge of the sheet.
FIT_WINDOW
public static final int FIT_WINDOW
A flag specifying whether to resize the document’s window to fit the size of the first displayed page.
HIDE_MENUBAR
public static final int HIDE_MENUBAR
A flag specifying whether to hide the conforming reader’s menu bar when the document is active.
HIDE_TOOLBAR
public static final int HIDE_TOOLBAR
A flag specifying whether to hide the conforming reader’s tool bars when the document is active.
HIDE_WINDOW_UI
public static final int HIDE_WINDOW_UI
A flag specifying whether to hide user interface elements in the document’s window (such as scroll bars and navigation controls), leaving only the document’s contents displayed.
NON_FULL_SCREEN_PAGE_MODE_USE_NONE
public static final int NON_FULL_SCREEN_PAGE_MODE_USE_NONE
Neither document outline nor thumbnail images visible.
NON_FULL_SCREEN_PAGE_MODE_USE_OC
public static final int NON_FULL_SCREEN_PAGE_MODE_USE_OC
Optional content group panel visible.
NON_FULL_SCREEN_PAGE_MODE_USE_OUTLINES
public static final int NON_FULL_SCREEN_PAGE_MODE_USE_OUTLINES
Document outline visible.
NON_FULL_SCREEN_PAGE_MODE_USE_THUMBS
public static final int NON_FULL_SCREEN_PAGE_MODE_USE_THUMBS
Thumbnail images visible
PAGE_LAYOUT_ONE_COLUMN
public static final int PAGE_LAYOUT_ONE_COLUMN
Display the pages in one column.
PAGE_LAYOUT_SINGLE_PAGE
public static final int PAGE_LAYOUT_SINGLE_PAGE
Display one page at a time.
PAGE_LAYOUT_TWO_COLUMN_LEFT
public static final int PAGE_LAYOUT_TWO_COLUMN_LEFT
Display the pages in two columns, with odd-numbered pages on the right
PAGE_LAYOUT_TWO_COLUMN_RIGHT
public static final int PAGE_LAYOUT_TWO_COLUMN_RIGHT
Display the pages in two columns, with odd-numbered pages on the right.
PAGE_MODE_FULL_SCREEN
public static final int PAGE_MODE_FULL_SCREEN
Full-screen mode, with no menu bar, window controls, or any other window visible.
PAGE_MODE_USE_ATTACHMENT
public static final int PAGE_MODE_USE_ATTACHMENT
Page mode with attacments.
PAGE_MODE_USE_NONE
public static final int PAGE_MODE_USE_NONE
Neither document outline nor thumbnail images visible
PAGE_MODE_USE_OC
public static final int PAGE_MODE_USE_OC
Optional content group panel visible.
PAGE_MODE_USE_OUTLINES
public static final int PAGE_MODE_USE_OUTLINES
Document outline visible.
PAGE_MODE_USE_THUMBS
public static final int PAGE_MODE_USE_THUMBS
Thumbnail images visible.
PICK_TRAY_BY_PDF_SIZE
public static final int PICK_TRAY_BY_PDF_SIZE
Use the PDF page size to select the input paper tray.
PRINT_SCALING_APP_DEFAULT
public static final int PRINT_SCALING_APP_DEFAULT
The conforming reader’s default print scaling.
PRINT_SCALING_NONE
public static final int PRINT_SCALING_NONE
No page scaling.
SIMPLEX
public static final int SIMPLEX
Print single-sided.
ViewerPreference
public ViewerPreference()