Kendo.Mvc.UI.Fluent.PDFViewerBuilder

Defines the fluent API for configuring the Kendo PDFViewer for ASP.NET MVC.

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 action that configures the pdfjsprocessing.

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

Specifies the DPL configuration options.

Parameters

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

The action that configures the dplprocessing.

Width(System.Double)

The width of the PDFViewer.

Parameters

value System.Double

The value that configures the width.

Height(System.Double)

The height of the PDFViewer.

Parameters

value System.Double

The value that configures the 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 action that configures the defaultpagesize.

Page(System.Double)

The selected page number in the viewer.

Parameters

value System.Double

The value that configures the 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 action that configures the view.

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.

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 action that configures the toolbar.

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 action that configures the messages.

Document(System.String)

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

Parameters

value System.String

The value that configures the document.

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?