Click or drag to resize

PdfViewerPreferences Class

PdfViewerPreferences represents document-specific preferences that are applied to the document viewer. It should be noted that not all PDF viewers will honor all settings and the behaviors may not be consistent across viewers.
Inheritance Hierarchy
SystemObject
  Atalasoft.PdfDocPdfViewerPreferences

Namespace:  Atalasoft.PdfDoc
Assembly:  Atalasoft.PdfDoc (in Atalasoft.PdfDoc.dll) Version: 11.4.0.9.0.377 (.NET 4.5.2, x86)
Syntax
public class PdfViewerPreferences : IValidatable

The PdfViewerPreferences type exposes the following members.

Constructors
  NameDescription
Public methodPdfViewerPreferences
Initializes a new instance of the PdfViewerPreferences class with default settings.
Top
Properties
  NameDescription
Public propertyCenterWindow
Gets or sets a value indicating whether the document's window should be centered.
Public propertyCopiesToPrint
Gets or sets the number of copies of the document to print. The value must be greater than 0.
Public propertyDisplayDocumentTitle
Gets or sets a value indicating whether the window's title should display the document title from the document's PdfDocumentMetadata object.
Public propertyFitWindowToInitialPage
Gets or sets a value indicating whether the document's window should be sized to fit the initial page size.
Public propertyHideMenubar
Gets or sets a value indicating whether the viewer should hide its menu bar (if any) when displaying the document.
Public propertyHideToolbar
Gets or sets a value indicating whether the viewer should hide its toolbar (if any) when displaying the document.
Public propertyHideWindowDressing
Gets or sets a value indicating whether the viewer should hide window UI controls such as scroll bars snd navigation tools when displaying the document.
Public propertyPostFullScreenPageDisplayMode
Gets or sets the page view mode that will be used when the viewer is siwtched out of full screen viewing.
Public propertyPrintingArea
Gets or sets the box to use as a printing area for pages in the document.
Public propertyPrintingMode
Gets or sets the printing mode for the document in terms of whether printing should be one-sided or two-sided and if two-sided, what the relationship between front and back pages should be.
Public propertyPrintingVisibleArea
Gets or sets the box to use as a printing visible area for pages in the document.
Public propertyPrintPageRanges
Gets the page ranges for printing. Each pair represents a sub-range of pages within the document to be printed. The ranges are 0-based and refer to page indexes in the document.
Public propertyPrintScaling
Gets or sets the print scaling for the viewer. There are currently two useful values for this property: "None" and "AppDefault". The PDF specification does not offer any suggestion for what the value should mean other than "None" will provide no scaling.
Public propertyReadingOrder
Gets or sets the dominant reading order for the document.
Public propertySelectPaperByPageSize
Gets or sets a value indicating whether the viewing application should set the print settings to pick paper from a source that matches the page size. This will depend on the capabilities of the printer and print driver.
Public propertyViewingArea
Gets or sets the box to use as a viewing area for pages in the document.
Public propertyViewingVisibleArea
Gets or sets the box to use as the visible area for pages in the document.
Top
Methods
  NameDescription
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodMakeRepairContext
Makes the repair context for repairing problems in this object. An object implementing IValidatable should at least return an empty RepairContext object.
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodValidate
Validates the object and accumulates any problems in the problems list.
Top
See Also