ViewerPreferences

ViewerPreferences

Overview

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

Represents the document’s viewer preferences (PDF32000 §12.2).

This class provides 1 method for working with ViewerPreferences objects in .NET programs. Available methods include: ViewerPreferences. All public members are accessible to any .NET application after installing the Aspose.PDF FOSS for .NET package. Properties: CenterWindow, Direction, DisplayDocTitle, Duplex, FitWindow, HideMenubar, and 5 more.

Properties

NameTypeAccessDescription
HideMenubarboolRead/WriteHide the menu bar.
HideToolbarboolRead/WriteHide the toolbar.
HideWindowUIboolRead/WriteHide the window UI elements.
FitWindowboolRead/WriteResize the document window to fit the first displayed page.
CenterWindowboolRead/WritePosition the window in the center of the screen.
DisplayDocTitleboolRead/WriteDisplay the document title in the title bar.
DirectionstringRead/WriteReading direction: “L2R” (left-to-right) or “R2L” (right-to-left).
PrintScalingstring?Read/WritePage scaling for printing: “None” or “AppDefault”.
Duplexstring?Read/WriteDuplex printing mode: “Simplex”, “DuplexFlipShortEdge”, “DuplexFlipLongEdge”.
PageLayoutPageLayoutMode?Read/WritePage layout mode.
PageModePageModeValue?Read/WritePage mode specifying how the document is displayed on opening.

Methods

SignatureDescription
ViewerPreferences()Create default viewer preferences.

See Also