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

PDF Manipulation

rpreiss
Registered: Jul 5 2007
Posts: 6

I split several PDFs into 1 page per Adobe file for processing by another program. After processing I want to re-combine the PDF page files back into their original PDFs using batch mode. How can I do this? Does it take some sort of scripting or is there a piece of software that will do this for me?

My Product Information:
Acrobat Pro 8.0999999999999996447286321199499070644378662109375, Windows
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
Yes, you can do this with JavaScript. Look in the Acrobat JavaScript Reference at the "doc.insertPages()" function. However, you can't do it reliably, or at least easily, in a batch process because you can't guarantee the file order.

If your file names contained the intended page location you could play some tricks with JavaScript to do this in a batch, but it's easier to just write a folder level JS to do it by looping through the files.

The key is to have the files named in a predictable consecutive way. Then you just write a loop using the "insertPages()" function to append all the files together.

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