# Custom Rendering

The PDF Viewer exposes three events allowing you to customize the default rendering of its nested components:

* [onRenderToolbar](https://www.telerik.com/kendo-react-ui/components/pdfviewer/custom-rendering#custom-tools)—Allows you to add custom tools inside the toolbar.
* [onRenderContent](https://www.telerik.com/kendo-react-ui/components/pdfviewer/custom-rendering#custom-content)—Allows the customization of the content layout.
* [onRenderLoader](https://www.telerik.com/kendo-react-ui/components/pdfviewer/custom-rendering#custom-loader)—Allows the customization of the loader's look and feel.

## Custom Tools

The following example showcases how to add a custom tool to the PDF Viewer toolbar by keeping some of the built-in tools at the same time. For this purpose, collect all built-in tools available in the [`onRenderToolbar`](https://www.telerik.com/kendo-react-ui/components/pdfviewer/api/pdfviewerprops#onrendertoolbar) event arguments, and then return only the desired ones and a custom **Mark as read** button.

[Demo Source](https://demos.telerik.com/kendo-react-ui/pdf-viewer/custom-rendering/func/source.txt)

## Custom Content

The PDF Viewer allows you to customize the loaded content by overwriting the result returned by the [onRenderContent](https://www.telerik.com/kendo-react-ui/components/pdfviewer/api/pdfviewerprops#onrendercontent) event. In this example, you will see how to add a red border to the element that wraps the loaded PDF document.

[Demo Source](https://demos.telerik.com/kendo-react-ui/pdf-viewer/custom-content/func/source.txt)

## Custom Loader

To change the default rendering of the loader that appears while the PDF document is loading, use the [onRenderLoader](https://www.telerik.com/kendo-react-ui/components/pdfviewer/api/pdfviewerprops#onrenderloader) event of the PDF Viewer. Below you can see how to apply custom styling to the default `loading` element.

[Demo Source](https://demos.telerik.com/kendo-react-ui/pdf-viewer/custom-loader/func/source.txt)

## Suggested Links

* [React PDF Viewer](https://www.telerik.com/kendo-react-ui/components/pdfviewer)
* [Toolbar](https://www.telerik.com/kendo-react-ui/components/pdfviewer/events)
* [Events](https://www.telerik.com/kendo-react-ui/components/pdfviewer/toolbar)
* [API Reference of the KendoReact PDF Viewer](https://www.telerik.com/kendo-react-ui/components/pdfviewer/api/pdfviewer)
