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

How can I extract images from a submitted PDF Form?

Explorer ,
Nov 22, 2017 Nov 22, 2017

Copy link to clipboard

Copied

Hi,

I created a pdf form in Acrobat with various types of fields including "image fields".

I can extract all the textual data that is filled in that form into for example csv format.

But, I do not know how I can extract an "image" simply uploaded to the required form field.

I am really looking forward for suggestions.

Thank you!

TOPICS
PDF forms

Views

4.3K

Translate

Translate

Report

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

correct answers 1 Correct answer

Community Expert , Feb 02, 2018 Feb 02, 2018

There are lots of other methods for doing this. For example you can flatten the form and then use the "Edit PDF" tools to open the image in Photoshop and then save it from there. You could take a screen shot of the PDF. And there are 3rd party tools for extracting images from a PDF. Google "Extract Image from PDF".

Votes

Translate

Translate
Adobe Employee ,
Dec 11, 2017 Dec 11, 2017

Copy link to clipboard

Copied

Hi,

There is no provision which allow users to extract the image inserted in image form field during form filling action.

This is as designed.

- Bhavna

Votes

Translate

Translate

Report

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 ,
Dec 11, 2017 Dec 11, 2017

Copy link to clipboard

Copied

We actually, yes you can export an image. But how it's done depends on the type of form you have. Is this a LiveCycle form or an AcroForm

In an AcroForm it can only be exported to an FDF format, this is because images have a complex format. An image is much different than say a number entry, which is a single, simple value. So, there is no standard data format for representing an image a CSV. But there is for representing in image in an FDF file.

this can only be done with the JavaScript functions, doc.exportAsFDF() and doc.submitForm().

Both of these functions include an input named "aFields" which is a list of fields to export. Simply include the name of the image field in this list.

Thom Parker - Software Developer at PDFScripting
Use the Acrobat JavaScript Reference early and often

Votes

Translate

Translate

Report

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
Explorer ,
Feb 02, 2018 Feb 02, 2018

Copy link to clipboard

Copied

Hi,

This will be a very late feedback from my side, but the issue is still actual.

1/I am creating an acrobat form. I am aware of the fact that we can directly export form data as fdf.

2/Could you please explain in detail (or with screenshot) about your recommended Javascript functions. At this stage, it remains a bit abstract to me.

Thank you for your support.

Votes

Translate

Translate

Report

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 ,
Feb 02, 2018 Feb 02, 2018

Copy link to clipboard

Copied

Say your image field is named "Image1" then this code will create an FDF file containing your image.

Notice the addition to the end of the name. This is something Acrobat does when you create an "Image" field.

this.exportAsFDF({aFields:["Image1_af_image"]});

Now you have an FDF file containing image data. And this is were it gets sticky. This is only good for transferring the image to another PDF.  What is your ultimate goal for this image? Do you just want an image file on your desktop?  One way to do this is to create another form that has one page and page size image field for each image field on your form. Then import the FDF into this file and save the file as an image. There are other things you can do but it gets more complicated.

Thom Parker - Software Developer at PDFScripting
Use the Acrobat JavaScript Reference early and often

Votes

Translate

Translate

Report

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 ,
Feb 02, 2018 Feb 02, 2018

Copy link to clipboard

Copied

LATEST

There are lots of other methods for doing this. For example you can flatten the form and then use the "Edit PDF" tools to open the image in Photoshop and then save it from there. You could take a screen shot of the PDF. And there are 3rd party tools for extracting images from a PDF. Google "Extract Image from PDF".

Thom Parker - Software Developer at PDFScripting
Use the Acrobat JavaScript Reference early and often

Votes

Translate

Translate

Report

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