Skip to main content

PDFViewer

Namespace: Wisej.Web.Ext.Webix

Assembly: Wisej.Web.Ext.Webix (4.1.0.0)

PDFViewer is a tool for displaying the content of PDF files on the screen.

public class PDFViewer : wxBase

Constructors​

Instance member PDFViewer()​

Constructs a new instance of the PDFViewer class.

Example:

The following example creates a viewer and loads a PDF file; the binary-> prefix tells Webix to load the file as binary data.

var viewer = new PDFViewer();
viewer.Options.url = "binary->Documents/manual.pdf";
viewer.Dock = DockStyle.Fill;
this.Controls.Add(viewer);

Instance member PDFViewer(options)​

Constructs a new instance of the PDFViewer class.

NameTypeDescription
optionsObjectInitial set of options.

Example:

The following example creates a viewer passing the document to load and moves to the next page when a button is clicked.

var viewer = new PDFViewer(new
{
url = "binary->Documents/invoice.pdf"
});
viewer.Dock = DockStyle.Fill;
this.Controls.Add(viewer);

this.buttonNext.Click += (s, e) => viewer.Instance.nextPage();

Implements​