gs -dBATCH -dNOPAUSE -q -sDEVICE=pdfwrite -sOutputFile=finished.pdf file1.pdf file2.pdf
Merge Two or More PDFs into a New Document using PDFtk
pdftk 1.pdf 2.pdf 3.pdf cat output 123.pdfor (Using Handles):
pdftk A=1.pdf B=2.pdf cat A B output 12.pdfor (Using Wildcards):
pdftk *.pdf cat output combined.pdf