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

merge pdf files in a specific folder without specifying the filenames

Suprem0
Registered: Feb 12 2008
Posts: 13

Hi to all,

I tried to use the sample code in JS developer guide in combining PDF documents, and it worked. However, it only works if filenames are specified in the script. What should I do or modify to let the script process or merge all PDF files in a certain folder, without the need of specifying their filenames. Thanks!

thomp
Expert
Registered: Feb 15 2006
Posts: 4411
There are two approaches.

1. Use a script in a batch process. I won't get into the script you'll need for this. Because the order of document processing can't be controled I don't think it's a good solution.

2. A much better solution is to write a VB or AppleScript application that uses the Acrobat IAC to open and append the documents. To find out more about the IAC, goto this web page:

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

Click on the "Documentation" tab and scroll down to "InterApplication Communication"

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