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