We need a tool to- 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 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,
pdftoolbox sample_in*.pdf -merge -outfile _mergeall_out.pdf
If you are usingCommand 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\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.