Hi Mohamed,
We 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.
Use the following code snippet to show MagnificationTools, PageNavigationTools and SelectionTool in PDF Viewer toolbar,
protected void Page_Load(object sender, EventArgs e)
{
PdfViewer1.ToolbarSettings = new Syncfusion.JavaScript.Models.PDFViewer.PdfViewerToolbarSettings();
PdfViewer1.ToolbarSettings.Items = Syncfusion.JavaScript.PdfViewerEnums.ToolbarItems.MagnificationTools | Syncfusion.JavaScript.PdfViewerEnums.ToolbarItems.PageNavigationTools | Syncfusion.JavaScript.PdfViewerEnums.ToolbarItems.SelectionTool;
} |
We have created the sample for the same and shared in the following 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 |
|
Text Search |
|
Print |
|
Selection |
|
Magnification |
|
Please find the UG documentation for the toolbar customization,
Regards,
Sathish