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

Combine multiple pdfs in code.

tsanta
Registered: Nov 9 2007
Posts: 4

how can I combine multiple pdfs (all the pdfs in a given folder) into a single pdf programatically. I am programming in VBA and I have Acrobat Pro 8.1 and I am using the distiller to create the pdfs.

My Product Information:
Acrobat Pro 8.0999999999999996447286321199499070644378662109375, Windows
dthanna
ExpertTeam
Registered: Sep 28 2005
Posts: 248
Hurm... sounds like a 'lights out' project - please read the Acrobat EULA regarding what you can / cannot do with the product.

That being said, via VB you want to use the VP -> JavaScript linkage (check the VB documentation in the SDK).In short, you open a port to Acrobat then throw the necessary JS code at Acrobat and let the Acrobat JS engine do what you want.

To get around the Adobe EULA and run this lights out you would need to purchase a server based PS-->PDF engine (Adobe sells one under their LiveCycle product line called PDF Generator ES) and use Adobe's or 'third party' library to handle the merge.What you are asking is very do-able. Just be sure to watch the legalities!

Douglas Hanna is a member of the Production Print Technology team at Aon.
www.aonhewitt.com

tsanta
Registered: Nov 9 2007
Posts: 4
This is to happen in an EXcel macro on a workstation with Adobe 8.1 installed. It is not a server-based application. Thank you.