Articles in this section
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:

http://www.syncfusion.com/downloads/support/directtrac/general/ze/PdfViewerSample-1021564925https://www.syncfusion.com/downloads/support/directtrac/general/ze/PdfViewerSample-1021564925

You can also show or hide the group of icons in the PDF viewer control toolbar using the following methods: 

Tools

Methods

Download 

showDownloadTool(show) 

Page Navigation 

showPageNavigationTools(show) 

Text Markup Annotation 

showTextMarkupAnnotationTools(show) 

Signature 

showSignatureTool(show) 

Selection 

showSelectionTool(show) 

Magnification 

showMagnificationTools(show) 

 

Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments (0)
Please sign in to leave a comment
Access denied
Access denied