Archive

Archive for the ‘Graphics’ Category

Merging PDF files from the command line

January 24, 2010 Leave a comment

To merge the pdf files infile1.pdf, infile2.pdf, and infile3.pdf, and output the result into a new file outfile.pdf in the same directory, do:

gs -q -sPAPERSIZE=letter -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -sOutputFile=outfile.pdf infile1.pdf infile2.pdf infile3.pdf

Note: Requires the ghostscript package.

Advertisements
Categories: Graphics, Utilities