The Wonders of Ghostscript: Merging or Joining PDF Files

I wanted to merge some PDF files together so I could store it online for myself. I perused the Ubuntu OS manual and found this very useful reference to use Pdftk, except it didn't work because the files were wonky (and I had install Pdftk to find out...).

In the same entry was the suggestion to use Ghostscript:

gs -q -sPAPERSIZE=letter -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -sOutputFile=out.pdf in1.pdf in2.pdf in3.pdf ...

Works perfectly! And I had Ghostscript all along too.

Oh, and everything has to be done on the command line, in case I'm wondering...

No comments: