• DR-IT Software
  • Products
  • Documentation
  • Product page
  • Examples
  • API reference
  • Support
Show / Hide Table of Contents

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.

Inheritance
object
ViewerPreferences
Inherited Members
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
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
Back to top

DR-IT Software documentation

DR-IT Software · Products · Documentation index · Product page · Downloads · Support · Licensing

Generated by DocFX