Category / Section
Hiding a button in the toolbar of the PDF viewer control
4 mins read
You can show or hide the toolbar icons of the PDF viewer control using the toolbarItem property of the toolbarSettings object. Refer to the following API documentation link for further details about the toolbarItem property.
https://help.syncfusion.com/api/js/ejpdfviewer#members:toolbarsettings-toolbaritem
Use the following code snippet to hide print option from the toolbar.
// For hiding the Print tool from the toolbar of the PDF viewer control $("#container").ejPdfViewer({ serviceUrl: '../api/PdfViewer', pdfService: ej.PdfViewer.PdfService.Local, toolbarSettings: { toolbarItem: ~ej.PdfViewer.ToolbarItems.PrintTools } });
Sample link:
You can also show or hide the group of icons in the PDF viewer control toolbar using the following methods:
Tools | Methods |
Download | |
Page Navigation | |
Text Markup Annotation | |
Signature | |
Selection | |
Magnification |