Click or drag to resize
PdfViewer Class
The PDF Viewer control for ASP.NET
Inheritance Hierarchy
SystemObject
  System.Web.UIControl
    System.Web.UI.WebControlsWebControl
      PdfViewer4AspNetPdfViewer

Namespace: PdfViewer4AspNet
Assembly: PdfViewerAspNet (in PdfViewerAspNet.dll) Version: 4.2
Syntax
public class PdfViewer : WebControl

The PdfViewer type exposes the following members.

Constructors
  NameDescription
Public methodPdfViewer
Top
Methods
  NameDescription
Public methodStatic memberGetPageCount
A fast method to obtain the page count of a specified PDF document.
Protected methodRenderContents
Render HTML code for this control
(Overrides WebControlRenderContents(HtmlTextWriter).)
Top
Properties
  NameDescription
Public propertyCurrentPage
Goes to the specified page in the document. Maintains the current location within the page and zoom level. The first page in a document is page 1. A negative value means that the viewer will go to a default page. The default value is -1.
Public propertyDocumentDisplayMode
Gets or sets the display mode of the document to show thumbnails or bookmarks. The default value is NotSet.
Public propertyLicenseKey
Gets or sets the license key
Public propertyOpenPassword
A password used to open a password protected PDF document in order to change its viewer preferences and security options.
Public propertyPageFitMode
Gets or sets the fit mode of the PDF page in the viewer. The default value is NotSet.
Public propertyPageLayoutMode
Gets or sets the layout mode for a page view. The default value is OneColumn. This property modifies the PDF document viewer preferences.
Public propertyPdfSecurityOptions
Gets a reference to the object to controlling the PDF document security settings like user and owner password, restrict printing or editing of the generated PDF document. The PDF document security settings are modified before the document is displayed by the viewer. The modified security settings are taking effect after the document is reloaded in the viewer control.
Public propertyPdfSourceBytes
The PDF bytes array to be rendered by the control
Public propertyPdfSourceURL
The URL of the PDF document to be displayed in the viewer. If the PdfSourceBytes is set, this property will be ignored
Public propertyPdfViewerPreferences
Gets a reference to the object controlling the PDF document viewer preferences. The properties of this object allows you hide toolbars and menus, hide all navigation panels, change the page mode and the page layout. The PDF document viewer preferences are modified before the document is displayed by the viewer. The modified viewer preferences are taking effect after the document is reloaded in the viewer control.
Public propertyShowNavigationPanel
Show or hide the navigation panel from the left side of the viewer containing buttons to view the bookmarks, thumbnails, file attachments and comments of the document. The default value of this property is true.
Public propertyShowScrollbars
Show or hide the viewer scrollbars. The default value is true.
Public propertyShowToolbarMode
Show or hide the viewer toolbar. The default value is NotSet.
Public propertyZoomPercentage
Gets or sets the zoom percentage of the viewer as a float number. For example, 100 represents a magnification of 100%. A negative value means the default zoom percentage is used. The default value is -1.
Top
See Also