add signature

hi, im trying to inject formField signature with initial signature but i can't see anything in you docs.

additional you have a event call addSignature but when i use it is undefined 


2 Replies

SK Shamini Kiruba Sobers Syncfusion Team May 31, 2022 06:44 PM UTC

Hi Jesus,


We are working on your query and we will provide the details before EOD on June 1, 2022.


Regards,

Shamini



VS Vasugi Sivajothi Syncfusion Team June 1, 2022 02:12 PM UTC

Hi Jesus,


Please find the details.


Query

Details

 

hi, im trying to inject formField signature with initial signature but i can't see anything in you docs.

 

 

You can add the values to a signature form field using the updateFormFieldsValue() method. Please refer to the below code snippet and sample.


To Update the signatures from the code behind: 

 

Draw:

 

var formField = viewer.retrieveFormFields();

formField[8]. signatureType = “Draw”;

formField[8].value = ""; // Provide the path value.

viewer.updateFormFieldsValue(formField[8]);

 

Type:

 

var formField = viewer.retrieveFormFields();

formField[8].signatureType = “Type”;            

formField[8].value = "name"; // Provide the name

formField[8].fontName = "Symbol";

viewer.updateFormFieldsValue(formField[8]);

 

Image:

 

var formField = viewer.retrieveFormFields();

formField[8].signatureType= “Image”;           

formField[8].value = ""; // Provide the base64 string

viewer.updateFormFieldsValue(formField[8]);

 

 

 

 

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

 

 

additional you have a event call addSignature but when i use it is undefined 

 

We suggest you use the formFieldPropertiesChange event to track adding the signature in the signature field. Please refer to the below code snippet and sample.

 

Code Snippet:

 

<ejs-pdfviewer id="pdfViewer" :serviceUrl="serviceUrl" :documentPath="documentPath":formFieldPropertiesChange="formFieldPropertiesChange"> </ejs-pdfviewer>

 

 

 formFieldPropertiesChange: function (args) {

                console.log(args);

            },

 

 

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

 

 

Addsignature event is used to track the process of adding a handwritten signature.

 



Kindly try this and let us know if you have any concerns about this.


Regards,

Vasugi.


Loader.
Up arrow icon