How to trigger signature panel in PDF viewer?

I'm running the Asp.Net Core PDFViewer control with a custom toolbar.  

How can I programmatically trigger the signature input panel as a result of a custom toolbar button click?

Thanks!


1 Reply

CK Chinnamunia Karthik Chinna Thambi Syncfusion Team June 15, 2023 01:01 PM UTC

Please refer to the below code snippet and sample for how to open the signature panel programmatically.


Code snippet:


function openSignPanel(args) {

    var viewer = document.getElementById('pdfviewer').ej2_instances[0];

   viewer.annotationModule.setAnnotationMode("HandWrittenSignature");

}


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


Steps to open the signature panel programmatically:


  • Run the above sample.
  • Click the "Open signature panel" button to open the signature panel.

Loader.
Up arrow icon