New to Telerik UI for ASP.NET AJAX? Download free 30-day trial

Toolbar and Tools

Internally, the PDFViewer uses the Kendo UI for jQuery Toolbar and provides a set of default tools and corresponding commands in its toolbar.

This approach enables you to use the ToolBar API and perform all available customizations.

In this article you will find the following sections:

Figure 1: The built-in tools in the PdfViewer Toolbar

pdfviewer tools

Built-in Tools

You can control the number and type of the rendered tools by initializing the items collection only with the tools that you require. For the full list of configuration options, refer to the client-side API of the ToolBar items.

The toolbar collection includes the following built-in tools:

  • pager
  • zoom
  • toggleSelection
  • search
  • open
  • download
  • print

Running an Adblock extension in Chrome might treat the new browser tab for the print dialog as a potential ad and block it.

Basic Toolbar Configuration

The following example demonstrates basic configuration options for the PDFViewer toolbar tools. You can also add spacer elements, in order to group a preferable set of tools.

Example 1: Specify the desired tools in the PdfViewer toolbar.

<telerik:RadPdfViewer runat="server" ID="RadPdfViewer1" Height="550px" Width="800px" Scale="0.9">
    <PdfjsProcessingSettings File="Document.pdf"></PdfjsProcessingSettings>
    <ToolBarSettings Items="pager, spacer, zoom, toggleSelection, spacer, search, open, download, print" />

You can also use the add and remove client-side API methods to programmatically manage the rendered tools in the PDFViewer.

Example 2: Add/Remove a Built-in Tool

    function onLoad(pdfViewer, args) {
<telerik:RadPdfViewer runat="server" ID="RadPdfViewer2" Height="550px" Width="800px">
    <ClientEvents OnLoad="onLoad" />
    <PdfjsProcessingSettings File="Document.pdf"></PdfjsProcessingSettings>

Add Custom Tools

You can add custom tools to the item collections of the toolbar.

Example 3: Add custom button to the PdfViewer toolbar.

    .logo-image {
        background-image: url("progress.png");
        width: 24px;
        height: 24px;
<script type="text/javascript" src=""></script>
<script type="text/javascript">
    window.pdfjsLib.GlobalWorkerOptions.workerSrc = '';

    function pageLoad(app, args) {
        var pdfViewer = $find('<%= RadPdfViewer1.ClientID %>');
            template: $telerik.$("#template").html()
            type: "spacer"
            type: "spacer"
            type: "button",
            text: "Send an E-Mail",
            click: function (e) {
                alert( + " is clicked");
<script type="text/template" id="template">
    <a href="" data-overflow="auto" class="logo-image" target="_blank" />

<telerik:RadPdfViewer runat="server" ID="RadPdfViewer1" Height="400px" Width="800px" Scale="1.2">
    <PdfjsProcessingSettings File="Document.pdf"></PdfjsProcessingSettings>
    <ToolBarSettings Items="pager, spacer" />

See Also

In this article
Not finding the help you need? Improve this article