Ability to programmatically add signature

Hi,

In the PDF Viewer control, when the user draws the signature using the "Draw Signature" functionality, is it possible to insert the signature at a specific location in the document?

Thanks.

2 Replies 1 reply marked as answer

SD Saurabh D September 14, 2020 03:10 PM UTC

To clarify further on my above question - do you have a sample where I can insert a signature programmatically using the "add Annotation" or any other method?

Thanks.


AA Akshaya Arivoli Syncfusion Team September 15, 2020 11:55 AM UTC

Hi Saurabh, 

Thank you for contacting Syncfusion support. 

Please find the details of your query from the below, 

Query 
Details  
n the PDF Viewer control, when the user draws the signature using the "Draw Signature" functionality, is it possible to insert the signature at a specific location in the document? 
We can include the handrwritten signature programmatically using the import/Export annotations as JSON object by setting isSignatureEditable to true 
 
 
 
To clarify further on my above question - do you have a sample where I can insert a signature programmatically using the "add Annotation" or any other method? 
Currently we do not have support to include the handwritten signature using the addAnnotation() . However we can achieve your requirement by drawing the ink annotation using ‘Draw Ink’ and insert it programmatically using addAnnotation(). 
 
 function addAnnotation(){ 
var pdfviewer = (document.getElementById('PdfViewer')).ej2_instances[0];    
                
 
              pdfviewer.addAnnotation(pdfviewer.annotationCollection[0]);  
               
 

Please try it and revert us with more details, if any concerns. 

Regards, 
Akshaya  


Marked as answer
Loader.
Up arrow icon