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?
I used pdftk for that:
sudo apt-get install pdftk
then:
pdftk small1.pdf small2.pdf small3.pdf cat output large.pdf
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
pdftk
in the above case: askubuntu.com/questions/2799/how-to-merge-several-pdf-files/…