Batch merge all PDF files in a folder to a single output PDF file


We need a tool to merge PDF files - ideally, all PDF files from a specified folder and create a single, merged PDF file.

This tool will be installed on a server.

I did check out PDFToolBox - but I am not sure if this is the most appropriate tool to use.

Can you please let us know ?

And I forgot to mention the most important point - the tool MUST have a command line interface.

With best regards.
PDFToolBox and PDF Split-Merge Command Line are all can merge all PDF files in a folder, they can be used from command line too.

PDFToolBox does support Wildcards for PDF merging, for example,

//merge PDF files using wildcards

pdftoolbox sample_in*.pdf -merge -outfile _mergeall_out.pdf


If you are using PDF Split-Merge Command Line, you can use a .txt file to merge all PDF file in a folder to one single output PDF file, please refer to a usage from following web page,

You can use a .txt file to merge or append lots of PDF files into one PDF file, please by following steps to try,

1. Please run following command line to get all filenames for all of your PDF files,

C:\>dir C:\pdf\*.pdf /s/b > C:\files.txt

Note: you can adjust the order for PDF files in C:\files.txt by manual.

2. Please run following command line to merge these PDF files into a PDF file,

C:\>"C:\Program Files\PDF Split-Merge v3.0\pdfpg.exe" C:\files.txt C:\out.pdf

The command line application is better than GUI version if you wish merge 1000+ PDF files into one PDF file.

The pdfpg.exe application is located in the PDF Split-Merge installation folder.


VN:F [1.9.20_1166]
Rating: 0.0/10 (0 votes cast)
VN:F [1.9.20_1166]
Rating: 0 (from 0 votes)

Related Posts

Leave a Reply

Your email address will not be published. Required fields are marked *

Verify Code   If you cannot see the CheckCode image,please refresh the page again!