Hide certain tool on pdfviewer

Hi Syncfusion team,


How to hide certain tool in toolbar?

I want to high the yellow highlighted part. Thanks.



3 Replies

CK Chinnamunia Karthik Chinna Thambi Syncfusion Team May 4, 2023 10:59 AM UTC

We have shared the code snippet and sample to hide the highlighted items in the screenshot.


Code snippet:


 

<ejs-pdfviewer id="pdfviewer" style="height:600px"

    toolbarSettings="@(new Syncfusion.EJ2.PdfViewer.PdfViewerToolbarSettings { ShowTooltip = true, ToolbarItems = "[OpenOption, UndoRedoTool, PageNavigationTool, MagnificationTool, PanTool, SelectionTool, SubmitForm, SearchOption, PrintOption, DownloadOption]"})"

    serviceUrl="/Index" documentPath="SamplePdfFile (1).pdf">

</ejs-pdfviewer>


Sample: https://www.syncfusion.com/downloads/support/directtrac/general/ze/CustomizeToolbarItems21.1.41919065166.zip


Please refer the below documentation for further assistance.


https://ej2.syncfusion.com/aspnetcore/documentation/pdfviewer/toolbar#showhide-the-default-toolbaritem




JD Jinchuan DU May 10, 2023 09:41 AM UTC

Hi  Chinnamunia,


It works perfectly. Thanks.


Regards



CK Chinnamunia Karthik Chinna Thambi Syncfusion Team May 11, 2023 04:42 AM UTC

Thanks for the update.

 

We are closing this forum.


Loader.
Up arrow icon