open

Fires when a PDF is opened in the viewer.

Example

<div id="pdfviewer"></div>

<script type="module">
   $("#pdfviewer").kendoPDFViewer({
      open: function (e) {
         kendo.alert("file opened: " + e.file.name);
      },
   });
</script>

Event Data

e.sender kendo.ui.PDFViewer

The widget instance which fired the event.

e.file Object

The file that will be displayed in the viewer.

In this article