Class ViewerPreferences
Viewer preferences for the document (spec §12.2, Table 151). Controls how the PDF viewer application displays the document. Stored in the catalog's /ViewerPreferences dictionary.
Inherited Members
Namespace: DRIT.Pdf
Assembly: DRIT.Pdf.dll
Syntax
public sealed class ViewerPreferences
Properties
CenterWindow
Center the document's window on the screen (/CenterWindow). Default is false.
Declaration
public bool CenterWindow { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
Direction
Reading order direction (/Direction). Default is LeftToRight.
Declaration
public ReadingOrder Direction { get; set; }
Property Value
| Type | Description |
|---|---|
| ReadingOrder |
DisplayDocTitle
Display the document title in the viewer's title bar (/DisplayDocTitle). Default is false.
Declaration
public bool DisplayDocTitle { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
FitWindow
Resize the document's window to fit the first page (/FitWindow). Default is false.
Declaration
public bool FitWindow { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
HideMenubar
Hide the viewer's menu bar (/HideMenubar). Default is false.
Declaration
public bool HideMenubar { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
HideToolbar
Hide the viewer's toolbar (/HideToolbar). Default is false.
Declaration
public bool HideToolbar { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
HideWindowUI
Hide the viewer's user-interface elements (/HideWindowUI). Default is false.
Declaration
public bool HideWindowUI { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |