Customizing Toolbar Options in SfPdfViewer2

Dear Syncfusion Support Team, 

I hope this message finds you well. 

I am currently working with the SfPdfViewer2 component in my Blazor application and would like to customize the toolbar options. Specifically, I am looking to disable or remove the "Open File" option from the toolbar. Attached is an image of the "Open File" option in the toolbar.  Here is a snippet of the code I am using: 
@if (pdfShow)
{

      <SfPdfViewer2 DocumentPath="@DocumentPath" Height="100%" Width="100%"></SfPdfViewer2> 

Could you please guide me on how to achieve this customization? Any help or documentation references you can provide would be greatly appreciated. 


2 Replies

AE Angelo El-Hage July 18, 2024 02:09 PM UTC

I apologize for the oversight in my previous message. I forgot to include the attachment. Here it is
Attachment: blazorpdfvieweropen.png_9faa22df.zip


VV Visvesvar Venkatesan Syncfusion Team July 22, 2024 02:51 AM UTC

Hi Angelo,


Kindly find the online sample for customizing the toolbar, along with the provided documentation to help you achieve the toolbar to your requirements.


Online sample : https://blazor.syncfusion.com/demos/pdf-viewer-2/custom-toolbar?theme=fluent2

Documentation : https://blazor.syncfusion.com/documentation/pdfviewer-2/toolbar-customization


Regards,

Visvesvar K V 


Loader.
Up arrow icon