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

JavaScript to Combine PDF files in Batch Job

nbk14bz
Registered: Feb 11 2008
Posts: 5

Hi,

I'm new to JavaScript, I'm a VBA programmer and I'm wondering if it's possible to combine a bunch of PDF files in a directory into one file and save it in another directory. Specific code would be great if someone has it but also good description how It's possible and a good way to learn Javascript would be good too.

Thanks,

Josh

My Product Information:
Acrobat Pro 8.1, Windows
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
From a VB application you can hook into Acrobat with the IAC interface and do exactly what you want. No JavaScript necessary. I don't know if the IAC works from VBA, but IAC is an ActiveX interface to Acrobat, so it might.

Find the documentation for IAC, Interapplication communication, here:

http://www.adobe.com/devnet/acrobat/

Click on the "Documentation" tab and scroll down.

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