2014-02-13

Pdf manipulation from the command line (rotation and merging)

This is how to rotate:

pdfjam --suffix rotated270 --angle '270' --fitpaper 'true' --rotateoversize 'true' --batch *.pdf

A shortcut to pdfjam and all that stuff is pdf90 - see man pdf90.

And this is how to merge using ghostscript.

gs -sDEVICE=pdfwrite -dNOPAUSE -dBATCH -sOutputFile=out.pdf *.pdf