PDFViewerToolbarSettingsBuilder

Methods

ContextMenu(System.Boolean)

When this option is enabled, the toolbar will render a dropdown button as its first item. The dropdown will display the 'open', 'download' and 'print' tools instead of rendering them on the right-side of the toolbar.

Parameters

value - System.Boolean

The value that enables or disables the ContextMenu.

Example

Razor
 
            @(Html.Kendo().PDFViewer()
               .Name("pdfviewer")
               .Toolbar(toolbar => toolbar.ContextMenu(true))
             )
             

Items(System.Action)

The the built-in tools are: 'pager', 'zoomInOut', 'zoom', 'toggleSelection', 'search', 'open', 'download', 'print', and 'annotations'. For DPL Processing, the 'exportAs' tool can be configured to export a single page to '.png' or '.svg'. The 'zoom', 'zoomInOut', 'toggleSelection', 'search', and 'print' tools are available only with PDFjs processing.

Parameters

configurator - System.Action<PDFViewerToolbarSettingsItemFactory>

The action that configures the toolbar items.

Example

Razor
 
            @(Html.Kendo().PDFViewer()
               .Name("pdfviewer")
               .Toolbar(toolbar =>
                    toolbar.Items(items =>
                    {
                        items.Add().Name("pager");
                    })
                )
             )