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

| Name | Type | Access | Description |
|------|------|--------|-------------|
| `HideMenubar` | `bool` | Read/Write | Hide the menu bar. |
| `HideToolbar` | `bool` | Read/Write | Hide the toolbar. |
| `HideWindowUI` | `bool` | Read/Write | Hide the window UI elements. |
| `FitWindow` | `bool` | Read/Write | Resize the document window to fit the first displayed page. |
| `CenterWindow` | `bool` | Read/Write | Position the window in the center of the screen. |
| `DisplayDocTitle` | `bool` | Read/Write | Display the document title in the title bar. |
| `Direction` | `string` | Read/Write | Reading direction: "L2R" (left-to-right) or "R2L" (right-to-left). |
| `PrintScaling` | `string?` | Read/Write | Page scaling for printing: "None" or "AppDefault". |
| `Duplex` | `string?` | Read/Write | Duplex printing mode: "Simplex", "DuplexFlipShortEdge", "DuplexFlipLongEdge". |
| `PageLayout` | `PageLayoutMode?` | Read/Write | Page layout mode. |
| `PageMode` | `PageModeValue?` | Read/Write | Page mode specifying how the document is displayed on opening. |

## Methods

| Signature | Description |
|-----------|-------------|
| `ViewerPreferences()` | Create default viewer preferences. |

## See Also

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