Digital Signature Write Reason inside Signature Field and Image

I am having trouble. I tried all of the code on https://help.syncfusion.com/file-formats/pdf/working-with-digitalsignature?cs-save-lang=1&cs-lang=asp.net%20core#signing-an-existing-document but none seems to do what I want to accomplish.

1. Use existing signature field in existing doc and write the signature fields as in attached 1st Sig. and 
2. use existing signature field in existing doc, add logo underneath and write the signature fields.






      //How do I get these to print on the signature field
            field.Signature.ContactInfo = "[email protected]";
            field.Signature.LocationInfo = "Honolulu, Hawaii";
            field.Signature.Reason = "I am author of this document.";

I included my code and files in the attached. Thank you.




Attachment: Sync_e33cdfd1.zip

5 Replies 1 reply marked as answer

SL Sowmiya Loganathan Syncfusion Team October 26, 2020 12:01 PM UTC

Hi Stephen,   
  
Thank you for contacting Syncfusion support.   
  
We have analyzed your requirement with the provide image files. We can able to achieve your requirement by adding text in a signature appearance and we have created the sample to illustrate this. Please find the sample for the same from below,   
  
  
Please try the above sample in your end and let us know the result.   
  
Regards,  
Sowmiya Loganathan  
 


Marked as answer

SL slynch September 1, 2021 08:41 PM UTC

Thank you for the above. I can now sign a pdf, however, when I merge 2 pdfs and then try to sign the new saved file, its fails on finding the signature field.


For example, with the attached files, I merge sample-contract-signaturefield.pdf with 2.pdf to save as newpdf.pdf.  Then I try to sign newpdf.pdf and it cannot find the signature field even though it is in the file on first page.


 


Attachment: save_b7edbced.7z


GK Gowthamraj Kumar Syncfusion Team September 2, 2021 12:09 PM UTC

Hi slynch, 
 
Thank you for contacting Syncfusion support.

 
We can find the signature field and sign the existing merged PDF document on our end. We have attached the sample and output document for your reference. Please try the sample on your end and let us know the result.
 
Sample: https://www.syncfusion.com/downloads/support/forum/159075/ze/NETCoreConsoleApp-360324077
 
 
Please find the below screenshot, 
 
 
Please refer the below link for more information, 
 
If still you are facing an issue, we request you to share the modified sample, complete code snippet, product version to reproduce the issue. So, that it will be helpful for us to analyze and assist you further on this.   
 
Regards, 
Gowthamraj K 



SL slynch September 3, 2021 03:13 PM UTC

Gowthamraj;

Thank you for your help. I can now 

  1. Merge the 2 files
  2. Complete some form fields on the merged form
  3. Sign the document
However, I have 2 questions,

  1. At Each step I am saving to a different filename, can I just overwrite the same file?
  2. On the final pdf, the filled in field is not showing unless I click on the field.
I am attaching my solution so you can run it and see. Thank you for all of your help.

Attachment: MergePDF_c166b49f.7z


GK Gowthamraj Kumar Syncfusion Team September 6, 2021 10:48 AM UTC

Hi slynch, 

Thank you for your update.

 
At Each step I am saving to a different filename, can I just overwrite the same file? 

No. If you overwrite with signature document, then the document signature will be invalid. So you can delete the remaining the file , after signing the filled PDF document. We have attached the modified sample to achieve your requirement.  Please try the sample on your end and let us know the result. 


On the final pdf, the filled in field is not showing unless I click on the field. 
If you are modifying the existing fields, we have to create an appearance for the ArcoForm field to reflect the modified values properly. To overcome this, we suggest you to recreating an appearance for form fields by disabling the SetDefaultAppearance.     

//Set the default appearance 
loadedForm.SetDefaultAppearance(false); 

Please refer the below link for more information,   

Regards, 
Gowthamraj  


Loader.
Up arrow icon