Enable/Disable Stamp Menu Options

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>


5 Replies

AC ArunKumar Chandrakesan Syncfusion Team September 2, 2022 05:09 AM UTC

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


Sample: https://www.syncfusion.com/downloads/support/directtrac/general/ze/GettingStarted_MVC_(2)957190917.zip


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




NA Nancy Anderson September 6, 2022 08:08 PM UTC

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


Attachment: stampmenulayout_f23b50fc.zip


AC ArunKumar Chandrakesan Syncfusion Team September 7, 2022 11:57 AM UTC

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




NA Nancy Anderson September 7, 2022 08:03 PM UTC

Hi,

 Thank you that is working. 


Thanks again,

Nancy




AC ArunKumar Chandrakesan Syncfusion Team September 8, 2022 10:17 AM UTC

Hi Nancy,


Thank you for your update


Regards,

Arun kumar


Loader.
Up arrow icon