5 Replies Latest reply on Feb 2, 2018 12:20 PM by Thom Parker

    How can I extract images from a submitted PDF Form?

    gamzes93533812 Level 1

      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!

        • 1. Re: How can I extract images from a submitted PDF Form?
          BhavnaNegi Adobe Employee

          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

          • 2. Re: How can I extract images from a submitted PDF Form?
            Thom Parker Adobe Community Professional

            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.

            • 3. Re: How can I extract images from a submitted PDF Form?
              gamzes93533812 Level 1

              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.

              • 4. Re: How can I extract images from a submitted PDF Form?
                Thom Parker Adobe Community Professional

                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.

                1 person found this helpful
                • 5. Re: How can I extract images from a submitted PDF Form?
                  Thom Parker Adobe Community Professional

                  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".