# PDFViewer

## Example

```
<kendo-pdfviewer>
    <default-page-size />
    <dpl-processing></dpl-processing>
    <messages />
    <pdfjs-processing />
    <toolbar></toolbar>
    <view />
</kendo-pdfviewer>
```

## ChildTags

| Tag Name          | Details                                                                                                                                                              |
| ----------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| default-page-size | [PDFViewerDefaultPageSizeSettingsTagHelper](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.taghelpers/pdfviewerdefaultpagesizesettingstaghelper) |
| dpl-processing    | [PDFViewerDplProcessingSettingsTagHelper](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.taghelpers/pdfviewerdplprocessingsettingstaghelper)     |
| messages          | [PDFViewerMessagesSettingsTagHelper](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.taghelpers/pdfviewermessagessettingstaghelper)               |
| pdfjs-processing  | [PDFViewerPdfjsProcessingSettingsTagHelper](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.taghelpers/pdfviewerpdfjsprocessingsettingstaghelper) |
| toolbar           | [PDFViewerToolbarSettingsTagHelper](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.taghelpers/pdfviewertoolbarsettingstaghelper)                 |
| view              | [PDFViewerViewSettingsTagHelper](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.taghelpers/pdfviewerviewsettingstaghelper)                       |

## Attributes

| Attribute             | Type                        | Description                                                                                                                                                                                                                                                        |
| --------------------- | --------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| name                  | String                      | Sets the name of the component.                                                                                                                                                                                                                                    |
| as-module             | Boolean                     | Specifies whether the initialization script of the component will be rendered as a JavaScript module.                                                                                                                                                              |
| on-error              | String                      | The name of the JavaScript function that will handle the error event. 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.                                                |
| on-kendo-keydown      | String                      | The name of the JavaScript function that will handle the kendoKeydown event. Triggered when the user presses a keyboard key while the PDFViewer is focused.The event handler function context (available via the this keyword) will be set to the widget instance. |
| on-open               | String                      | The name of the JavaScript function that will handle the open event. Fires when a PDF is opened in the viewer.                                                                                                                                                     |
| is-in-client-template | Boolean                     | When placing a Tag Helper within a Kendo Template, set the type to text/html and add the is-in-client-template="true" attribute.                                                                                                                                   |
| document              | String                      | The client-side global variable or function to provide the JSON data for the PDF document.                                                                                                                                                                         |
| height                | Double                      | The height of the PDFViewer.                                                                                                                                                                                                                                       |
| on-render             | String                      | The name of the JavaScript function that will handle the render event. Fires when a page is rendered                                                                                                                                                               |
| page                  | Double                      | The selected page number in the viewer.                                                                                                                                                                                                                            |
| scale                 | Double                      | Specifies the default scale of the pages.                                                                                                                                                                                                                          |
| script-attributes     | IDictionary\<String,Object> | Sets the attributes that will be added to the script tag of the component's initialization script.                                                                                                                                                                 |
| width                 | Double                      | The width of the PDFViewer.                                                                                                                                                                                                                                        |
| zoom-max              | Double                      | Specifies the maximum zoom that could be applied to the pages.                                                                                                                                                                                                     |
| zoom-rate             | Double                      | Specifies the zoom rate that could be applied to the pages. Used when zooming on mousewheel and for the zoomIn and zoomOut tools.                                                                                                                                  |
| deferred              | Boolean                     | Suppress initialization script rendering. Note that this options should be used in conjunction with DeferredScripts method.                                                                                                                                        |
| zoom-min              | Double                      | Specifies the minimum zoom that could be applied to the pages.                                                                                                                                                                                                     |
