kendoPDFViewer
Namespace: Wisej.Web.Ext.Kendo
Assembly: Wisej.Web.Ext.Kendo (4.1.0.0)
The PDFViewer displays PDF files in the browser and consists of a toolbar and a scrollable container that wraps the page elements.
- C#
- VB.NET
public class kendoPDFViewer : kendoBase
Public Class kendoPDFViewer
Inherits kendoBase
Constructors
kendoPDFViewer()
Constructs a new instance of the kendoPDFViewer class.
Example:
The following example creates a PDF viewer and sets the document to display through the Options property.
var viewer = new kendoPDFViewer();
viewer.Options.pdfjsProcessing = new { file = "Documents/Manual.pdf" };
viewer.Dock = DockStyle.Fill;
this.Controls.Add(viewer);
kendoPDFViewer(options)
Constructs a new instance of the kendoPDFViewer class.
| Name | Type | Description |
|---|---|---|
| options | Object | Initial set of options. |
The constructor sets Selectable to true to let the user select the text of the document. The client widget always fills the control: the width and height options are replaced with the size of the control.
Example:
The following example creates a PDF viewer that uses PDF.js to display a document, starting from the second page.
var viewer = new kendoPDFViewer(new
{
pdfjsProcessing = new { file = "Documents/Manual.pdf" },
page = 2
});
viewer.Dock = DockStyle.Fill;
this.Controls.Add(viewer);