4

I have a few pdf files (e.g., small1.pdf, small2.pdf, small3.pdf) that I'd like to be able to join together to form one larger pdf (e.g., large.pdf).

  • What is a good option for doing this on the command-line?

2 Answers2

10

I used pdftk for that:

sudo apt-get install pdftk

then:

pdftk small1.pdf small2.pdf small3.pdf cat output large.pdf
con-f-use
  • 19,041
5

PDFJam and PDFtk can do this too, but since you probably have Ghostscript installed already (all one line): gs -dBATCH -dNOPAUSE -sDEVICE=pdfwrite -sOutputFile=large.pdf -f small1.pdf small2.pdf small3.pdf

frabjous
  • 6,601