PDFViewer
Kendo UI PDFViewer component
Definition
Namespace:Kendo.Mvc.UI
Assembly:Kendo.Mvc.dll
Syntax:
public class PDFViewer : WidgetBase, IWidget, IHtmlAttributesContainer, IScriptableComponent
Inheritance: objectWidgetBasePDFViewer
Implements:
Inherited Members
Constructors
Initializes a new instance of the PDFViewer class.
public PDFViewer(ViewContext viewContext, IJavaScriptInitializer initializer, IUrlGenerator urlGenerator)
The view context
initializerIJavaScriptInitializerThe JavaScriptInitializer
urlGeneratorIUrlGeneratorThe URL generator.
Properties
Specifies the default page size if no PDF is displayed in the PDFViewer. The page size will shrink to fit the viewer dimensions.
public PDFViewerDefaultPageSizeSettings DefaultPageSize { get; set; }
The client-side global variable or function to provide the JSON data for the PDF document.
public ClientHandlerDescriptor Document { get; set; }
Specifies the DPL configuration options. For a complete demo and a backend implementation, check the <a href="https://demos.telerik.com/aspnet-core/pdfviewer/dpl-processing" target="_blank">Telerik UI for ASP.NET Core DPL Processing demo</a>.
public PDFViewerDplProcessingSettings DplProcessing { get; set; }
Specifies the localization messages of the PDFViewer.
public PDFViewerMessagesSettings Messages { get; set; }
Specifies the PDF.JS configuration options. Including pdfjs is mandatory.
public PDFViewerPdfjsProcessingSettings PdfjsProcessing { get; set; }
Toolbar option accepts a Boolean value which indicates if the toolbar will be displayed or an Object with items and overflow configuration. Inherits Kendo UI Toolbar.
public PDFViewerToolbarSettings Toolbar { get; set; }
Defines the page surface options. This setting is available only for DPL Processing. The page render a drawing Surface and all of its configuration options could be defined.
public PDFViewerViewSettings View { get; set; }
Specifies the maximum zoom that could be applied to the pages.
public double? ZoomMax { get; set; }
Specifies the minimum zoom that could be applied to the pages.
public double? ZoomMin { get; set; }
Methods
public override IDictionary<string, object> Serialize()
Overrides:
Writes the HTML.
protected override void WriteHtml(HtmlTextWriter writer)
The HtmlTextWriter.
Overrides:
Writes the initialization script.
public override void WriteInitializationScript(TextWriter writer)
The TextWriter.
Overrides: