Main Contents

Create multipage PDF under Linux in one line

July 17, 2009

This will be the start of my “Things I’m to lazy to remember” series.

As a freelance guy on a Linux-Box sooner or later you will have the need to create multipage PDFs (in my case invoices scanned by xsane).
So, how? No prob. On my distri (Ubuntu) it’s fairly simple:

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

Using Imagemagick it’s even easier and you don’t need PDFs (but you have to tune the quality):

convert *.jpg myPDF.pdf

For the record, I got those hints from the always helpful Ubuntu-Forums ;)

Filed under: Things I'm too lazy to remember, _dev | Comments (0)

Leave a comment