how to e-sign PDF document where signature can be embedded in PDF doc.

pinki1
Tera Contributor

Hi,

We have a requirement to create task to e-sign PDF document. once the user e-sgin the document, signature should be visible on PDF document.

I have created a document under 'dms_document' table to upload PDF doc and published it. Then i created a e-signature template and called that document in it.

find_real_file.png

 

I have created a child task(service activity) to sign document. Task is creating and once employee sign document and accept it, signature is getting store under 'e-signature History' related list of task.

 find_real_file.png

Signature is not showing on PDF Doc.

Could anyone please help on this.

 

Thanks in advance.

Regards,

Pinki

1 ACCEPTED SOLUTION

Hi Pinki

HR Template is always populated when HR case of that HR service is created. 

Following I am sharing my HR Service, HR Template and HR Task template Screenshots that might help you

 

1. HR Service SS

find_real_file.png 

HR Template SS

find_real_file.png

 

3. Service Activity 

find_real_file.png

 

4. HR Task Template

find_real_file.png

 

Compare all above SS with your work.

 

Please mark as correct if it resolve your issue or let me know if further explanation needed.

Thanks

View solution in original post

12 REPLIES 12

Joe Dames
Tera Expert

I think you'll have call the script include global.GeneralPdfUtils()  mergeImageToPdf()

The most complete code I've seen for mergeImageToPdf() is posted here in the community.



michaelj_sherid
ServiceNow Employee
ServiceNow Employee

Hi Pinki,

 

You have to use the HR Document template and E-Signature type as seen below. This will yield the results you are looking for. 

 

find_real_file.png

Regards,

Mike

Hi Mike,

Thanks for your response.

I have selected Document type as 'HR Document Template' and E-Signature as 'Signature'. But Document is not showing in HR task after  creating case. I am getting error as--'Document is not available'.

If i manually add 'PDF Template' in HR Case, document will be available in HR Task.

find_real_file.png

 

 

How can i auto populate value of 'PDF Template' while creating HR Case.

Regards,

Pinki