Copy link to clipboard
Copied
Hi all -
I am developing a Acrobat Javascript to download survey results from Epicollect 5 (a basic data collection app) and populate them in a PDF form.
I am able to make HTTP requests using Net.HTTP.request to authenticate and to retrieve the text results from the survey.
But the survey results also include a set of photos, which can be retrieved individually by a GET request. Can anyone provide any hints or examples of how to add a .jpg image as an attachment from the stream result from a web call?
My idea is to download and add the images as attachments, then switch the image fields on the form to display those images.
Thanks,
Doug
Copy link to clipboard
Copied
You don't want to do this entirely in the Acrobat or Reader client. You're going to want a server app sitting in between the PDF and Epicollect. Use an app on the server to format the results from the GET to create an FDF that gets returned to the PDF. The FDF can set the appearance of some read-only button fields on the PDF to show your images.
Find more inspiration, events, and resources on the new Adobe Community
Explore Now