tags:

views:

142

answers:

1

We have a bunch of documents in our organization that were inadvertently saved as Adobe PDF packages (also known as PDF 1.7 "collections"). We would like to convert these to normal PDFs (most of these "packages" contain one bog-standard pdf file), but given the number of files, it's not possible manually.

Any Adobe expert know whether:

  1. There is an open-source or free library that handles PDF package format that I can write a script around?
  2. Does Adobe Pro 9 have a relevant scriptable interface that would allow me to extract the relevant file from each package?

Alternatively, I'm looking at a macro-based approach, but I'd rather not go this route until investigating other options.

Thanks!

+1  A: 

After a bunch of digging around, I found pdftk, which is distributed as source and binary on many platforms.

It does almost all of what we need to do, and we can now iterate through our documents and recursively call pdftk on each (some are multi-level attachment chains).

r00fus