These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

import image and then extract after submitting via email

MikeRask
Registered: Jan 26 2009
Posts: 3

I need to attach scanned image -> submit form via Acrobat reader & email -> extract image from Acrobat Pro

I've created a form in LCD 8 that lets a user import scanned images. Is there an easy way to extract the images after the PDF is submitted via email? What I would like to do is have the end user fill out a field with a receipt number(6 digit integer) and when the JPG image file is imported, have Adobe Reader automatically rename the embedded file ######.JPG based on the number already entered into the prior field. The end user then submits the form via email.

Then after the PDF is submitted and received, the receiver(running Acrobat Pro 8) can open the PDF form, and somehow extract the image.

If that can't be done is there a way to attach/create an ID for the embedded image using a script? There is a program called Gemini which will extract the scanned images, but it doesn't appear(I could be wrong) as though Adobe keeps/creates a file ID or filename after an image is imported using an image field. Or it doesn't create an OPI dictionary(whatever that is). Gemini extracts the images no problem, but names the files the form name plus a series of digits

The Gemini program is supposed to be able to extract the filename from the PDF file according to the following:

http://www.powerxchange.com/documentation/acrobat_plugins/iceni_gemini_manual.php#img_pref_tab

• Use original OPI name if available
If the image being output has an OPI dictionary associated with it, the program will look for the image’s original file name in that dictionary. If found, the image will be exported with that name.

When searching for the name, the program makes use of the values of the either the FileSpec sub-dictionary or the ID field. One or both of these may be present and the program will make a judgment as to which is used.

To view all of the OPI information related to a particular image, press the right mouse button over the image in question and choose “Image properties…” from the menu that appears.

My Product Information:
LiveCycle Designer, Windows
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
Gemini is a tool for working on regular PDFs, and OPI (open prepress interface) informaiton is only attached to image dictionaries when images are inserted into Page content in a proper way. I'm not sure exactly which tools will do this, but I'm pretty sure that converting an InDesign document in to a PDF will do it.

A LiveCycle form is not a regular PDF and images imported with an "Image Edit" field are not part of the page content, In fact, they are not really even part of the PDF. The image data is either a reference to the external image, or it is imported into the XFA, not the PDF. If Gemini is able to extract the image data at all it's probably because your LiveCyle form is static. So forget about the OPI.

To do this properly you will have to use a purely XFA methodology to extract the images, or use a different Form Type/methodology to import the images.

Thom Parker
The source for PDF Scripting Info
[url=http://www.pdfScripting.com]pdfscripting.com[/url]

The Acrobat JavaScript Reference, Use it Early and Often
[url=http://www.adobe.com/devnet/acrobat/javascript.php]http://www.adobe.com/devnet/acrobat/javascript.php[/url]

Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script

lkassuba
ExpertTeam
Registered: Jun 28 2007
Posts: 3636
If you go the XFA route, Paul Guerette has a suggestion for doing this with [url=http://www.adobeforums.com/webx/.59b746e2]Image Fields[/url].

Lori Kassuba is an AUC Expert and Community Manager for AcrobatUsers.com.