Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

How can I attach a photo to a PDF from a HTTP web call?

New Here ,
Aug 04, 2017 Aug 04, 2017

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

TOPICS
Acrobat SDK and JavaScript , Windows
249
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Aug 04, 2017 Aug 04, 2017
LATEST

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines