How to disable/hide "Open file" button?

How to disable/hide "Open file" button?

5 Replies

AA Akshaya Arivoli Syncfusion Team February 12, 2020 11:00 AM UTC

Hi Andrey ,  

Thank you for contacting Syncfusion support. 

We can hide the option from the PDF Viewer toolbar using the “PdfViewerToolbarSettings”.Refer to the below link for more details, 


You can find the list of toolbar item from the below link, 


Please try this and revert us if you have any concerns on this. 

Regards, 
Akshaya 



AB Arthur Butler March 25, 2020 12:34 AM UTC



AA Akshaya Arivoli Syncfusion Team March 25, 2020 06:36 AM UTC

Hi Arthur, 

Thank you for your update. 

We have modified the EJ2 PDF Viewer Blazor namespace form our 2020 Volume 1 beta release. So please find updated link to know the Toolbar items from the below, 


Please find the update UG documentation to getting started with PDF Viewer, 


Please try it and revert us with more details if you have any concerns on this. 

Regards, 
Akshaya 



MM Michael Milone December 9, 2021 04:45 PM UTC

I am getting this warning when trying to customize the PdfToolbar



DM Dhivyabharathi Mohan Syncfusion Team December 10, 2021 11:21 AM UTC

Hi Michael, 
 
We were able to reproduce the reported warning while customizing the toolbar. And on further checking that the reported warning will not affect the functionalities of customizing the toolbar. So, you can customize the toolbar items as per your requirement. We have shared the sample and code snippet for your reference. 
 
 
Code snippet: 
 
<SfPdfViewerServer DocumentPath="@DocumentPath" Height="500px" Width="1060px" ToolbarSettings="@ToolbarSettings"></SfPdfViewerServer> 
 
 
public PdfViewerToolbarSettings ToolbarSettings = new PdfViewerToolbarSettings() 
    { 
        ToolbarItems = new() 
        { 
            Syncfusion.Blazor.PdfViewer.ToolbarItem.PageNavigationTool, 
            Syncfusion.Blazor.PdfViewer.ToolbarItem.MagnificationTool, 
            Syncfusion.Blazor.PdfViewer.ToolbarItem.SearchOption, 
            Syncfusion.Blazor.PdfViewer.ToolbarItem.PrintOption, 
            Syncfusion.Blazor.PdfViewer.ToolbarItem.DownloadOption 
        } 
    }; 
 
 
 
Could you please try this and let us know whether you are facing any issue regarding this warning? If yes, kindly share the error details. So, that it will be helpful for us to investigate further and provide the details at the earliest. 
 
Regards, 
Dhivya. 


Loader.
Up arrow icon