Skip to main content
Participant
January 29, 2017
Question

combine pdf files

  • January 29, 2017
  • 2 replies
  • 514 views

Hello. Using the Acrobat API, how can I write a script that does what

File->Create->Combine Files into Single PDF

does in Acrobat. I need to do this for thousands of PDF files, so it can't be done by hand. I need some way to automate it. The files have a rigid naming convention, so I can easily generate the name strings automatically. Is there a way to do this using the JavaScript API, or maybe the PDFL API? I know how to open, read in, and write out PDF files, but what calls are needed to actually combine them into one single document? Thanks.

This topic has been closed for replies.

2 replies

Legend
January 30, 2017

As an interactive tool I wouldn't expect you to be able to do more than a few hundred files at a time In Acrobat. PDFL should be fine if you close each input file in turn.

Bernd Alheit
Community Expert
Community Expert
January 30, 2017

With Acrobat JavaScript you can use the method insertPages.