Table of Contents

Class PdfViewerPreferences

Namespace
PdfSharp.Pdf
Assembly
PdfSharp.dll

Represents the PDF document viewer preferences dictionary.

public sealed class PdfViewerPreferences : PdfDictionary, ICloneable, IEnumerable<KeyValuePair<string, PdfItem?>>, IEnumerable
Inheritance
PdfViewerPreferences
Implements
Inherited Members

Properties

CenterWindow

Gets or sets a value indicating whether to position the document’s window in the center of the screen.

public bool CenterWindow { get; set; }

Property Value

bool

Direction

The predominant reading order for text: LeftToRight or RightToLeft (including vertical writing systems, such as Chinese, Japanese, and Korean). This entry has no direct effect on the document’s contents or page numbering but can be used to determine the relative positioning of pages when displayed side by side or printed n-up. Default value: LeftToRight.

public PdfReadingDirection? Direction { get; set; }

Property Value

PdfReadingDirection?

DisplayDocTitle

Gets or sets a value indicating whether the window’s title bar should display the document title taken from the Title entry of the document information dictionary. If false, the title bar should instead display the name of the PDF file containing the document.

public bool DisplayDocTitle { get; set; }

Property Value

bool

FitWindow

Gets or sets a value indicating whether to resize the document’s window to fit the size of the first displayed page.

public bool FitWindow { get; set; }

Property Value

bool

HideMenubar

Gets or sets a value indicating whether to hide the viewer application’s menu bar when the document is active.

public bool HideMenubar { get; set; }

Property Value

bool

HideToolbar

Gets or sets a value indicating whether to hide the viewer application’s tool bars when the document is active.

public bool HideToolbar { get; set; }

Property Value

bool

HideWindowUI

Gets or sets a value indicating whether to hide user interface elements in the document’s window (such as scroll bars and navigation controls), leaving only the document’s contents displayed.

public bool HideWindowUI { get; set; }

Property Value

bool