I have an application that dynamically generates an FDF, uses Aspose.Kit.Form to load a PDF form, and then imports the data from the FDF into the form. This works fine except for images.
Images are converted into PDFs and referenced in the FDF using /APRef and mapped onto the icon of a button field. I am attaching a sample FDF so you can see the full syntax. This approach works fine when the FDF is loaded into the PDF form using Acrobat. When it’s done using Aspose.Kit.Form.ImportFdf(), the button icon remains blank.
Any help would be appreciated, even if it’s to tell me that Aspose doesn’t support this.
K-
Hi,
I have tested the issue while using the FDF file that you shared and have been able to notice the same problem. The issue has been communicated to the development team, and they are looking into the details of this issue. Soon you will be updated with the status of correction.
We apologize for your inconvenience.
I look forward to getting that status update.
K-
Hi,
Importing image through a URL is not supported by ImportFdf method.
Anyway, we'll try to find some workaround. But I am afraid it is not easy.
Thank you for the reply. Please note that I am not trying to import the image through a URL. I am using a file path on the local computer.
Also, any approach that will allow Aspose.Pdf to dynamically substitute images in PDF forms would be acceptable to me. Please let me know what approach is easiest.
Thank you,
K-
Dear keigwin,
Sorry to confuse you. A file path is regarded as a local URL. So it is not supported by Kit, either.
FYI, you can invoke Form.FillImageField( ) to insert image into PDF fields. Please refer to the API: http://www.aspose.com/documentation/file-format-components/aspose.pdf.kit-for-.net-and-java/aspose.pdf.kit.form.fillimagefield_overloads.html.
We also decide to promote Form.ImportFdf( ) to support image inserting, I hope it will be included in the next release.
Dear keigwin,
A new feature has been provided for your requirement. It will be included in the new version.
Best regards.
The issues you have found earlier (filed as 6541) have been fixed in [this update](http://www.aspose.com/community/files/51/file-format-components/aspose.pdf.kit-for-.net-and-java/entry171362.aspx).