Concatenating PDFs
Ξ July 23rd, 2008 | → 0 Comments |
∇ Tools | ∇ Concatenate, Ghostscript, PDF, Tools |
A few days ago I had to scan a paper certificate to send it in a digital form. The paper certificate had 3 pages which I promptly scanned into 3 separate PDFs as the required format was PDF.
Then came the hard part, I could only submit 1 file which meant that had to concatenate all 3 original files. Of course that for this I could use some kind of PDF tool (such as acrobat writer), but as any respected Linux user the way forward was to use “the shell”…
So, the solution was to use Ghostscript. The tool is able to “print” a sequence of files into a unique PDF file. Just use it as follows:
gs -q -sPAPERSIZE=a4 -dNOPAUSE -dBATCH -sDEVICE=pdfwrite
-sOutputFile=out.pdf in1.pdf in2.pdf in3.pdf [more-input-files]




