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

Batch Processing of Pdf Portfolios

sherylj
Registered: Jul 25 2007
Posts: 19
Answered

Is it possible to create a batch sequence in Acrobat Professional (version 8, 9, or X) that would create a portfolio from pdf files located in a specific folder? If so, how? Also, is there a javascript that would do this as well?
 
Thanks,
 
Sheryl

My Product Information:
Acrobat, Windows
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
Accepted Answer
Yes, but it would have to be done with a script. There are no built-in batch commands for creating a portfolio. Usually you'd do this with the Combine Files menu item.

But there are JavaScript commands for creating a portfolio, lookup "app.newCollection()".

To implement this in a Batch process the script would need to create a global variable containing the Doc object for the new Collection. Then each time the script was called afterward, for each file in the batch process, it would add that file to the collection. The Portfolio file would remain open and visible to the user after the process completed.

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

UVSAR
Expert
Registered: Oct 29 2008
Posts: 1357
The API in Acrobat 9 doesn't support the complete automation of PDF portfolio creation. You can create a new collection object, returning an empty file with the default navigator, and bring in attachments using the dataObject methods of the doc object; but it's not possible to assign layouts, design styles or file structure.
sherylj
Registered: Jul 25 2007
Posts: 19
Okay...I appreciate the quick responses...I'll give it a try...Thanks again!