---
Product: Aspose.PDF
Platform: net
Page Type: reference
Canonical URL: https://reference.aspose.org/pdf/net/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

| Name | Type | Access | Description |
|------|------|--------|-------------|
| `PageModeUseNone` | `int` | Read | Neither document outline nor thumbnail images visible. |
| `PageModeUseOutlines` | `int` | Read | Document outline visible. |
| `PageModeUseThumbs` | `int` | Read | Thumbnail images visible. |
| `PageModeFullScreen` | `int` | Read | Full-screen mode. |
| `PageModeUseOC` | `int` | Read | Optional content group panel visible. |
| `PageModeUseAttachment` | `int` | Read | Attachments panel visible. |
| `PageLayoutSinglePage` | `int` | Read | Display one page at a time. |
| `PageLayoutOneColumn` | `int` | Read | Display the pages in one column. |
| `PageLayoutTwoColumnLeft` | `int` | Read | Display the pages in two columns, odd pages on the left. |
| `PageLayoutTwoColumnRight` | `int` | Read | Display the pages in two columns, odd pages on the right. |
| `PageLayoutTwoPageLeft` | `int` | Read | Display the pages two at a time, odd pages on the left (extension flag). |
| `PageLayoutTwoPageRight` | `int` | Read | Display the pages two at a time, odd pages on the right (extension flag). |
| `HideMenubar` | `int` | Read | Hide the menu bar. |
| `HideToolbar` | `int` | Read | Hide the toolbar. |
| `HideWindowUI` | `int` | Read | Hide window UI elements. |
| `FitWindow` | `int` | Read | Resize the document window to fit the first displayed page. |
| `CenterWindow` | `int` | Read | Position the document window in the center of the screen. |
| `DisplayDocTitle` | `int` | Read | Display the document title in the title bar. |
| `NonFullScreenPageModeUseNone` | `int` | Read | In full-screen mode, neither outlines nor thumbnails are shown when the viewer exits to a non-full-screen state. |
| `NonFullScreenPageModeUseOutlines` | `int` | Read | In full-screen mode, show outlines after exit. |
| `NonFullScreenPageModeUseThumbs` | `int` | Read | In full-screen mode, show thumbnails after exit. |
| `NonFullScreenPageModeUseOC` | `int` | Read | In full-screen mode, show the optional-content group panel after exit. |
| `DirectionL2R` | `int` | Read | Left-to-right reading order (default for Western scripts). |
| `DirectionR2L` | `int` | Read | Right-to-left reading order (Hebrew, Arabic, vertical CJK). |
| `PrintScalingAppDefault` | `int` | Read | Page content is centred and scaled to fit the printer page. |
| `PrintScalingNone` | `int` | Read | Page content is printed at actual size, with no scaling. |
| `Simplex` | `int` | Read | Print single-sided. |
| `DuplexFlipLongEdge` | `int` | Read | Print duplex, flipping along the long edge of the page (book binding). |
| `DuplexFlipShortEdge` | `int` | Read | Print duplex, flipping along the short edge of the page (calendar binding). |
| `PickTrayByPDFSize` | `int` | Read | When set, the viewer picks the printer paper tray that matches each page's PDF page size (auto tray selection). |

## Methods

| Signature | Description |
|-----------|-------------|
| `ViewerPreference()` | Default constructor; the class carries no instance state. |

## See Also

- [Aspose.PDF for .NET — Enterprise API Reference](https://reference.aspose.com/pdf/net/)