[]
        
(Showing Draft Content)

C1.Pdf.PdfViewerPreferences

PdfViewerPreferences Class

Represents viewer preferences to be used when displaying the document.

Inheritance
PdfViewerPreferences
Namespace: C1.Pdf
Assembly: C1.Pdf.dll
Syntax
public class PdfViewerPreferences

Constructors

Name Description
PdfViewerPreferences()

The viewer preferences to be used when displaying the document.

Properties

Name Description
CenterWindow

Gets or sets whether to position the document's window in the center of the screen.

DisplayDocTitle

Indicates whether the window’s title bar should display the document title taken from the Title entry of the document information dictionary.

Default value: false.

Duplex

Specifies the page scaling option to be selected when a print dialog is displayed for this document.

FitWindow

Gets or sets whether to resize the document's window to fit the size of the first displayed page.

HideMenuBar

Gets or sets whether to hide the viewer menu bar when the document is active.

HideToolBar

Gets or sets whether to hide the viewer tool bars when the document is active.

HideWindowUI

Indicates 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.

Default value: false.

NonFullScreenPageMode

Specifies how to display the document on exiting full-screen mode. Ignored unless PageMode is FullScreen.

NumCopies

(PDF 1.7) The number of copies to be printed when the print dialog is opened for this file. Supported values are the integers 2 through 5. Values outside this range are ignored.

PageLayout

Gets or sets the page layout to be used when the document is opened.

PageMode

Gets or sets how the document should be displayed when opened.

PickTrayByPDFSize

(PDF 1.7) A flag specifying whether the PDF page size is used to select the input paper tray.

PrintPageRange

(PDF 1.7) The page numbers used to initialize the print dialog box when the file is printed. This is a comma-delimited list of inidvidual page numbers and/or dash-delimited page ranges. Page numbers start from 1.

PrintScaling

Specifies the page scaling option to be selected when a print dialog is displayed for this document.