Skip to main content

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.

public class ejPdfViewer : 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​

Instance member 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);

Instance member ejPdfViewer(options)​

Constructs a new instance of the ejPdfViewer class.

NameTypeDescription
optionsObjectInitial 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);

Implements​