Adding images from codebehind

I'm using SfPdfViewer (next gen) to load a pdf with inside some form fields and I fill them from code behind before showing the Pdf.

If the Pdf has an Image field, is there a way to fill it programmatically from code behind ?

Thanks

Best Regards



3 Replies

SK Sathiyaseelan Kannigaraj Syncfusion Team December 9, 2024 12:02 PM UTC

Hi Walter Martin,

Thank you for reaching out to us. Could you please confirm whether you need to add a custom stamp to the PDF or an image to the signature field. If your requirement is to add a custom stamp to the PDF using the PDF Viewer, we have provided the documentation below for your reference.

Documentation on adding custom stamp


If your requirement is to add an image to the signature field, you can update the field's value by retrieving the signature field, adding the desired value, and then updating the field in the PDF. Below, we have provided a sample for your reference.

Sample for Adding image to formfields
 


Regards,
Sathiyaseelan K



WM Walter Martin December 11, 2024 04:59 PM UTC

I'm sorry I didn't see the solution on the documentation.

Your first option is exactly what I needed 

Thanks




SK Sathiyaseelan Kannigaraj Syncfusion Team December 12, 2024 05:36 AM UTC

Hi Walter Martin,

Thank you for the update. We are glad the first option was exactly what you needed. If you have any additional questions or need further assistance, feel free to reach out to us.


Regards,
Sathiyaseelan K


Loader.
Up arrow icon