ejPdfViewer
Namespace: Wisej.Web.Ext.Syncfusion
Assembly: Wisej.Web.Ext.Syncfusion (4.1.0.0)
PDF viewer for JavaScript is a visualization component for viewing and printing the PDF documents in web pages. It is powered by HTML5 or JavaScript and provides various customizations.
- C#
- VB.NET
public class ejPdfViewer : ejBase
Public Class ejPdfViewer
Inherits ejBase
The wrapper always sets the serviceUrl option of the widget to the service URL of this control, replacing the value specified in the options. The requests sent by the viewer to load and process the PDF documents are therefore sent to this control and are received by the application through the WebRequest event.
Constructors
ejPdfViewer()
Constructs a new instance of the ejPdfViewer class.
Example:
The following example creates the viewer and disables the hyperlinks in the documents through the options.
var viewer = new ejPdfViewer();
viewer.Options.enableHyperlink = false;
viewer.Dock = DockStyle.Fill;
this.Controls.Add(viewer);
ejPdfViewer(options)
Constructs a new instance of the ejPdfViewer class.
| Name | Type | Description |
|---|---|---|
| options | Object | Initial set of options. |
Example:
The following example creates a viewer that does not allow to select the text and handles the requests of the widget.
var viewer = new ejPdfViewer(new
{
enableTextSelection = false,
enableHyperlink = false
});
viewer.WebRequest += this.viewer_WebRequest;
viewer.Dock = DockStyle.Fill;
this.Controls.Add(viewer);