<kendo:pdfViewer>

A JSP wrapper for Kendo UI PDFViewer.

Configuration Attributes

document java.lang.String

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

Example

<kendo:pdfViewer document="document">
</kendo:pdfViewer>

height java.lang.Object

The height of the PDFViewer.

Example

<kendo:pdfViewer height="height">
</kendo:pdfViewer>

page float

The selected page number in the viewer.

Example

<kendo:pdfViewer page="page">
</kendo:pdfViewer>

toolbar boolean

Toolbar option accepts a Boolean value which indicates if the toolbar will be displayed or an Object with items. Inherits Kendo UI Toolbar. Further configuration is available via kendo:pdfViewer-toolbar.

Example

<kendo:pdfViewer toolbar="toolbar">
</kendo:pdfViewer>

width java.lang.Object

The width of the PDFViewer.

Example

<kendo:pdfViewer width="width">
</kendo:pdfViewer>

Configuration JSP Tags

kendo:pdfViewer-defaultPageSize

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

More documentation is available at kendo:pdfViewer-defaultPageSize.

Example

<kendo:pdfViewer>
    <kendo:pdfViewer-defaultPageSize></kendo:pdfViewer-defaultPageSize>
</kendo:pdfViewer>

kendo:pdfViewer-dplProcessing

Specifies the DPL configuration options.

More documentation is available at kendo:pdfViewer-dplProcessing.

Example

<kendo:pdfViewer>
    <kendo:pdfViewer-dplProcessing></kendo:pdfViewer-dplProcessing>
</kendo:pdfViewer>

kendo:pdfViewer-messages

Specifies the localization messages of the PDFViewer.

More documentation is available at kendo:pdfViewer-messages.

Example

<kendo:pdfViewer>
    <kendo:pdfViewer-messages></kendo:pdfViewer-messages>
</kendo:pdfViewer>

kendo:pdfViewer-pdfjsProcessing

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

More documentation is available at kendo:pdfViewer-pdfjsProcessing.

Example

<kendo:pdfViewer>
    <kendo:pdfViewer-pdfjsProcessing></kendo:pdfViewer-pdfjsProcessing>
</kendo:pdfViewer>

kendo:pdfViewer-toolbar

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

More documentation is available at kendo:pdfViewer-toolbar.

Example

<kendo:pdfViewer>
    <kendo:pdfViewer-toolbar></kendo:pdfViewer-toolbar>
</kendo:pdfViewer>

kendo:pdfViewer-view

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.

More documentation is available at kendo:pdfViewer-view.

Example

<kendo:pdfViewer>
    <kendo:pdfViewer-view></kendo:pdfViewer-view>
</kendo:pdfViewer>

Event Attributes

render String

Fires when a page is rendered

For additional information check the render event documentation.

Example

<kendo:pdfViewer render="handle_render">
</kendo:pdfViewer>
<script>
    function handle_render(e) {
        // Code to handle the render event.
    }
</script>

open String

Fires when a PDF is opened in the viewer.

For additional information check the open event documentation.

Example

<kendo:pdfViewer open="handle_open">
</kendo:pdfViewer>
<script>
    function handle_open(e) {
        // Code to handle the open event.
    }
</script>

error String

Fires when an error is encountered. By default, a dialog is shown with error message. The dialog will not be shown if the event is prevented.

For additional information check the error event documentation.

Example

<kendo:pdfViewer error="handle_error">
</kendo:pdfViewer>
<script>
    function handle_error(e) {
        // Code to handle the error event.
    }
</script>

Event Tags

kendo:pdfViewer-render

Fires when a page is rendered

For additional information check the render event documentation.

Example

<kendo:pdfViewer>
    <kendo:pdfViewer-render>
        <script>
            function(e) {
                // Code to handle the render event.
            }
        </script>
    </kendo:pdfViewer-render>
</kendo:pdfViewer>

kendo:pdfViewer-open

Fires when a PDF is opened in the viewer.

For additional information check the open event documentation.

Example

<kendo:pdfViewer>
    <kendo:pdfViewer-open>
        <script>
            function(e) {
                // Code to handle the open event.
            }
        </script>
    </kendo:pdfViewer-open>
</kendo:pdfViewer>

kendo:pdfViewer-error

Fires when an error is encountered. By default, a dialog is shown with error message. The dialog will not be shown if the event is prevented.

For additional information check the error event documentation.

Example

<kendo:pdfViewer>
    <kendo:pdfViewer-error>
        <script>
            function(e) {
                // Code to handle the error event.
            }
        </script>
    </kendo:pdfViewer-error>
</kendo:pdfViewer>
In this article
Not finding the help you need?