ViewerPreference

ViewerPreference

Overview

ViewerPreference is a class in Aspose.PDF FOSS for .NET.

Bag of const int bit-flags describing viewer preferences (page mode, page layout, fullscreen behaviour, duplex, print scaling, reading direction).

This class provides 1 method for working with ViewerPreference objects in .NET programs. Available methods include: ViewerPreference. All public members are accessible to any .NET application after installing the Aspose.PDF FOSS for .NET package. Properties: CenterWindow, DirectionL2R, DirectionR2L, DisplayDocTitle, DuplexFlipLongEdge, DuplexFlipShortEdge, and 24 more.

Properties

NameTypeAccessDescription
PageModeUseNoneintReadNeither document outline nor thumbnail images visible.
PageModeUseOutlinesintReadDocument outline visible.
PageModeUseThumbsintReadThumbnail images visible.
PageModeFullScreenintReadFull-screen mode.
PageModeUseOCintReadOptional content group panel visible.
PageModeUseAttachmentintReadAttachments panel visible.
PageLayoutSinglePageintReadDisplay one page at a time.
PageLayoutOneColumnintReadDisplay the pages in one column.
PageLayoutTwoColumnLeftintReadDisplay the pages in two columns, odd pages on the left.
PageLayoutTwoColumnRightintReadDisplay the pages in two columns, odd pages on the right.
PageLayoutTwoPageLeftintReadDisplay the pages two at a time, odd pages on the left (extension flag).
PageLayoutTwoPageRightintReadDisplay the pages two at a time, odd pages on the right (extension flag).
HideMenubarintReadHide the menu bar.
HideToolbarintReadHide the toolbar.
HideWindowUIintReadHide window UI elements.
FitWindowintReadResize the document window to fit the first displayed page.
CenterWindowintReadPosition the document window in the center of the screen.
DisplayDocTitleintReadDisplay the document title in the title bar.
NonFullScreenPageModeUseNoneintReadIn full-screen mode, neither outlines nor thumbnails are shown when the viewer exits to a non-full-screen state.
NonFullScreenPageModeUseOutlinesintReadIn full-screen mode, show outlines after exit.
NonFullScreenPageModeUseThumbsintReadIn full-screen mode, show thumbnails after exit.
NonFullScreenPageModeUseOCintReadIn full-screen mode, show the optional-content group panel after exit.
DirectionL2RintReadLeft-to-right reading order (default for Western scripts).
DirectionR2LintReadRight-to-left reading order (Hebrew, Arabic, vertical CJK).
PrintScalingAppDefaultintReadPage content is centred and scaled to fit the printer page.
PrintScalingNoneintReadPage content is printed at actual size, with no scaling.
SimplexintReadPrint single-sided.
DuplexFlipLongEdgeintReadPrint duplex, flipping along the long edge of the page (book binding).
DuplexFlipShortEdgeintReadPrint duplex, flipping along the short edge of the page (calendar binding).
PickTrayByPDFSizeintReadWhen set, the viewer picks the printer paper tray that matches each page’s PDF page size (auto tray selection).

Methods

SignatureDescription
ViewerPreference()Default constructor; the class carries no instance state.

See Also