Skip to main content
Participant
April 7, 2022
Question

Combine pdf files

  • April 7, 2022
  • 1 reply
  • 552 views

Does exist any java script to use in Adobe Acrobat XI that helps to combine in batch mode several pdf files to one pdf file. And then goes to other Directory and makes the same until the end.

Thanks if someone can help me. 

This topic has been closed for replies.

1 reply

try67
Community Expert
Community Expert
April 7, 2022

Not really. A script can't read the contents of a folder. If you want to merge files you have to supply to the script their full paths. This can be done from a text file, for example, or from a global variable, if you first run an Action on the folder and save the paths of all the files in it. Then, in a separate command, you can use that information to merge those files to a new document, using app.newDoc and the insertPages method.

Wilder.Bolaños
Community Expert
Community Expert
April 7, 2022

Hello,

this sounds great, there will be a code base, some tutorial or support material to review,

Greetings,

WbolanosCo
try67
Community Expert
Community Expert
April 7, 2022

The documentation is available in the Acrobat SDK. It's not a simple project if you don't have any experience in this field, I should tell you.

 

If you're interested, I've already created a (paid-for) tool that does just that.

You can find it here: https://www.try67.com/tool/acrobat-batch-combine-all-pdf-files-in-a-folder