We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Adding image to acrobat form field

We are assessing Aspose.PDF as a replacement for ActivePDF and are having trouble with replicating one critical part of the code: adding an image to a form field.

Does Aspose.PDF support loading images into form fields? If so, could you point me to the documentation or example code that shows how it works?

I’m looking specifically for something comparable the following code that we use with ActivePdf’s PDF Toolkit library:
byte[] image = // load image from db and store here;
PdfObject.ImageByteArray = image;
PdfObject.SetFormFieldData(field, “MEMORY”, -996);

If it is of any help, here is a link to ActivePDF’s documentation supporting this feature.

Many thanks,
Rick Caborn

My apologies for jumping right into asking a question before looking just a tiny bit.

The answer to my question appears to be: use TextBoxField.AddImage();


It is nice to hear from you that you have found the solution of your query. Please feel free to ask if you have any question about Aspose.PDF, we will be happy to help you.

1 Like