Hi there,
Is there a way to turn off the Dynamic and Custom Stamp menus?
This is how I am creating my PDF viewer.
Thanks.
<div class="row">
<div class="col-md-12"> @Html.EJS().PdfViewer("pdfviewer").ServiceUrl(VirtualPathUtility.ToAbsolute("~/PdfViewer/")).ToolbarSettings(new Syncfusion.EJ2.PdfViewer.PdfViewerToolbarSettings { ShowTooltip = true, AnnotationToolbarItems = "CommentPanelTool" }).DocumentPath(ViewBag.AppointmentIdDir + "\\" + ViewBag.FileName).Render()
</div>
</div>
Hi Nancy,
Kindly refer the below sample and documentation link to Enable/Disable Stamp Menu Options in the pdf viewer. And let us know if the solution provided is helpful to you
List of toolbars: https://ej2.syncfusion.com/vue/documentation/api/pdfviewer/annotationToolbarItem/
Documentation link: https://ej2.syncfusion.com/aspnetmvc/documentation/pdfviewer/toolbar
Regard,
Arun kumar
Hi,
Sorry, I don't think that is what I need.
I don't want to hide the stamp tool menu item I want to customize it. I only want the Sign Here and Standard Business stamp options to show.
Thanks,
Nancy
Hi Nancy,
Currently, we do not have any API and events to customize the annotation item tools but we have provided the workaround code snippet below.
Code snippet:
|
<style> #pdfviewer { display: block; } [aria-label="Dynamic"] { display: none !important; } [aria-label="Custom Stamp"] { display: none !important; }
</style> |
Sample below: https://www.syncfusion.com/downloads/support/directtrac/general/ze/GettingStarted_MVC-1024583170.zip
Please let us know if you have any other queries.
Regard,
Arun kumar
Hi,
Thank you that is working.
Thanks again,
Nancy
Hi Nancy,
Thank you for your update
Regards,
Arun kumar