Kendo.Mvc.UI.Fluent.PDFViewerBuilder

Defines the fluent API for configuring the Kendo UI PDFViewer

Methods

PdfjsProcessing(System.Action<Kendo.Mvc.UI.Fluent.PDFViewerPdfjsProcessingSettingsBuilder>)

Specifies the PDF.JS configuration options. Including pdfjs is mandatory.

Parameters

configurator System.Action<Kendo.Mvc.UI.Fluent.PDFViewerPdfjsProcessingSettingsBuilder>

The configurator for the pdfjsprocessing setting.

DplProcessing(System.Action<Kendo.Mvc.UI.Fluent.PDFViewerDplProcessingSettingsBuilder>)

Specifies the DPL configuration options.

Parameters

configurator System.Action<Kendo.Mvc.UI.Fluent.PDFViewerDplProcessingSettingsBuilder>

The configurator for the dplprocessing setting.

Width(System.Double)

The width of the PDFViewer.

Parameters

value System.Double

The value for Width

Height(System.Double)

The height of the PDFViewer.

Parameters

value System.Double

The value for Height

DefaultPageSize(System.Action<Kendo.Mvc.UI.Fluent.PDFViewerDefaultPageSizeSettingsBuilder>)

Specifies the default page size if no PDF is displayed in the PDFViewer. The page size will shrink to fit the viewer dimensions.

Parameters

configurator System.Action<Kendo.Mvc.UI.Fluent.PDFViewerDefaultPageSizeSettingsBuilder>

The configurator for the defaultpagesize setting.

Page(System.Double)

The selected page number in the viewer.

Parameters

value System.Double

The value for Page

View(System.Action<Kendo.Mvc.UI.Fluent.PDFViewerViewSettingsBuilder>)

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.

Parameters

configurator System.Action<Kendo.Mvc.UI.Fluent.PDFViewerViewSettingsBuilder>

The configurator for the view setting.

Toolbar(System.Action<Kendo.Mvc.UI.Fluent.PDFViewerToolbarSettingsBuilder>)

Toolbar option accepts a Boolean value which indicates if the toolbar will be displayed or an Object with items. Inherits Kendo UI Toolbar.

Parameters

configurator System.Action<Kendo.Mvc.UI.Fluent.PDFViewerToolbarSettingsBuilder>

The configurator for the toolbar setting.

Toolbar(System.Boolean)

Toolbar option accepts a Boolean value which indicates if the toolbar will be displayed or an Object with items. Inherits Kendo UI Toolbar.

Parameters

enabled System.Boolean

Enables or disables the toolbar option.

Messages(System.Action<Kendo.Mvc.UI.Fluent.PDFViewerMessagesSettingsBuilder>)

Specifies the localization messages of the PDFViewer.

Parameters

configurator System.Action<Kendo.Mvc.UI.Fluent.PDFViewerMessagesSettingsBuilder>

The configurator for the messages setting.

Document(System.String)

The client-side global variable or function to provide the JSON data for the PDF document.

Parameters

handler System.String

The name of the JavaScript function that will be evaluated.

Document(System.Func<System.Object,System.Object>)

The client-side global variable or function to provide the JSON data for the PDF document.

Parameters

handler System.Func<System.Object,System.Object>

The handler code wrapped in a text tag.

Events(System.Action<Kendo.Mvc.UI.Fluent.PDFViewerEventBuilder>)

Configures the client-side events.

Parameters

configurator System.Action<Kendo.Mvc.UI.Fluent.PDFViewerEventBuilder>

The client events action.

Example (ASPX)

@(Html.Kendo().PDFViewer()
    .Name("PDFViewer")
    .Events(events => events
        .Render("onRender")
    )
)
In this article
Not finding the help you need?