Programmatically setting ImageField in AcroForm PDF to Signature Image/Data

I am working on a project that is using an AcroForm template to build PDFs. As part of the template, there is an ImageField that I'd like to set dynamically/programmatically. I am already programmatically setting the other form fields in the AcroForm, and that works great with the PdfViewer.

For example, if the users of my application needed to sign 8 PDFs, I could open all of the PDFs, one by one, and have the user sign them.

Or, I could also use a Signature control outside of the PDF, get the signature image, and update the PDFs programmatically with the signature information for the ImageField in the PDF. This would be way more efficient to the user, as they would only need to sign once, and all of the PDFs would be updated.

I was wondering if this is something that is supported as part of the SyncFusion PdfViewer.



3 Replies 1 reply marked as answer

MK Muralitharan Karikalan Syncfusion Team March 4, 2021 02:41 PM UTC

Hi Ryan, 
 
While analyzing your requirement we confirmed that you need adding a signature in the  fields programmatically. You are mentioning that as image field. Kindly let us know which field you are mentioning as image field. Kindly provide us more details about the user case scenarios to help you with better solution. 
 
Regards, 
Muralitharan K


RA Ryan Alford March 5, 2021 02:37 PM UTC

I have attached a screenshot of what it looks like in AcroForms to add a SignatureImage to a PDF template. It seems that the SignatureImage is considered an ImageButton.

Attachment: image_(5).png_1feb1cbb.zip


MK Muralitharan Karikalan Syncfusion Team March 8, 2021 05:51 PM UTC

Hi Ryan, 
 
We have created a simple sample to achieve your requirement of adding signature to the button fields programmatically. Please find the sample from the below link and let us know whether the given sample is satisfied your requirement. 
 
Please find the sample link below, 
 
Please follow the steps, 
1.Draw signature in the SfSignaturePad 
2.Save the signature 
3.Load Pdfviewer 
4.Add the signature in the button field as image stamp. 
 
Regards, 
Muralitharan K   


Marked as answer
Loader.
Up arrow icon