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

JS & PDF Packages

sstewart
Registered: Apr 18 2006
Posts: 4

I'd like to be able to use Javascript with PDF packages, as a starting point to just iterate between documents contained within the package.

I haven't found anything in the AA8 JS documentation, can anyone help?

S.

My Product Information:
Acrobat Pro 8.1.1, Windows
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
Packages are just a fancy way to display embedded or attached files. In Acrobat JavaScript, file attachements are called "Data" objects. You can get a listing of attached files with the "doc.dataObjects" property and open a PDF attachement with the "doc.openDataObject()" function.

Both of these are listed in the Acrobat JavaScript Reference. Unfortunately there is no way for the opened PDF to know what it's parent file is, or even that it's a file attachment in another PDF, i.e., there's no JavaScript path from the embedded files context back to the parent doc. At least not a built in Path.

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