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.
- C#
- VB.NET
public class PDFViewer : wxBase
Public Class PDFViewer
Inherits wxBase
Constructors
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);
PDFViewer(options)
Constructs a new instance of the PDFViewer class.
| Name | Type | Description |
|---|---|---|
| options | Object | Initial 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();