PdfViewer Class |
Namespace: PdfViewer4AspNet
The PdfViewer type exposes the following members.
Name | Description | |
---|---|---|
![]() ![]() | GetPageCount |
A fast method to obtain the page count of a specified PDF document.
|
![]() | RenderContents |
Render HTML code for this control
(Overrides WebControlRenderContents(HtmlTextWriter).) |
Name | Description | |
---|---|---|
![]() | CurrentPage |
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.
|
![]() | DocumentDisplayMode |
Gets or sets the display mode of the document to show thumbnails or bookmarks. The default value is NotSet.
|
![]() | LicenseKey |
Gets or sets the license key
|
![]() | OpenPassword |
A password used to open a password protected PDF document in order to change its
viewer preferences and security options.
|
![]() | PageFitMode |
Gets or sets the fit mode of the PDF page in the viewer. The default value is NotSet.
|
![]() | PageLayoutMode |
Gets or sets the layout mode for a page view. The default value is OneColumn.
This property modifies the PDF document viewer preferences.
|
![]() | PdfSecurityOptions |
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.
|
![]() | PdfSourceBytes |
The PDF bytes array to be rendered by the control
|
![]() | PdfSourceURL |
The URL of the PDF document to be displayed in the viewer. If the PdfSourceBytes is set, this
property will be ignored
|
![]() | PdfViewerPreferences |
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.
|
![]() | ShowNavigationPanel |
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.
|
![]() | ShowScrollbars |
Show or hide the viewer scrollbars. The default value is true.
|
![]() | ShowToolbarMode |
Show or hide the viewer toolbar. The default value is NotSet.
|
![]() | ZoomPercentage |
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.
|