Monday, December 12, 2011

Concatenate pdf files

Well, I know the net is full of information about the concatenation of pdfs, but I never find them when I'm in hurry. So, just as a reminder for myself:

$ gs -q -sPAPERSIZE=a4 -dNOPAUSE -dBATCH -sDEVICE=pdfwrite
-sOutputFile=output.pdf file1.pdf file2.pdf file3.pdf [...] lastfile.pdf

gs is provided by ghostscript package. In order to install it, type in a terminal emulator:

# aptitude install ghostscript

No comments:

Post a Comment