Events
The KendoReact PDF Viewer component exposes several events to let you easily handle file operations logic in React apps. Below is a summary of the available events and their triggers:
onLoad
—Fires when a PDF document has been loaded.onError
—Fires when an error occurs, for example, when the selected file cannot be read.onDownload
—Fires when the download tool has been clicked. To prevent the download, returnfalse
.onPageChange
—Fires when the page has changed.onZoom
—Fires when the zoom level has changed.onRenderContent
—Fires when the content component is about to be rendered.onRenderLoader
—Fires when the loading indication component is about to be rendered.onRenderToolbar
—Fires when the toolbar component is about to be rendered.
The following example demonstrates basic PDF Viewer events.