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

extract documents to package

lucianopilla
Registered: Oct 18 2007
Posts: 76

I use acrobat prodessional 8.1 and i'd like to know how extract (with javascript core for acrobat)documents to package. is it possible?

Adding intelligence to documents

My Product Information:
Acrobat Pro 8.0999999999999996447286321199499070644378662109375, Windows
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
Unfortunately you can't really do this. Under specific circumstances documents can be added to a PDF Package with JavaScript. But as of Acrobat 7, The Acrobat JavaScript function that extracts files from a package has been partially disabled for security reasons. The save path can no longer be specified and the user will always be asked to provide the save path.

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

lucianopilla
Registered: Oct 18 2007
Posts: 76
Thanks for answer, i understood!
I thought to resolve the question flip through the documents in a specific folder and adding two button integrated in Acrobat UI, one to push for next document and the other for the previous, so i can process the document similary to acrobat package without extracting the documents later! is it possibile? i hope my english is understandable. Thanks a lots.

Adding intelligence to documents

thomp
Expert
Registered: Feb 15 2006
Posts: 4411
You cannot extract embedded files into a folder without the users help. But, you can launch an embedded file using the "doc.exportDataObject()" function.

If you want to access all files in a particular folder, this cannot be done. There is no direct access to user's hard drive from Acrobat JavaScript.

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

lucianopilla
Registered: Oct 18 2007
Posts: 76
Thanks for answer! I've another question to paste, i'd like to encode an icon as a variable into an alphanumeric streak so to be understandble to acrobat. I saw some exemples in sdk and work well, but i don't understand how traslate the image in that format. i attempted in a sveral way without triumph. Any suggest? thanks for your helpfullness. Luciano

Adding intelligence to documents