Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
With Acrobat JavaScript you can use the method insertPages.
Copy link to clipboard
Copied
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.
Find more inspiration, events, and resources on the new Adobe Community
Explore Now