Printing in Booklet Format from the Linux Command Line
Here is a Linux command to take a PDF of half-letter-sized pages (5.5"x8.5") and arrange them, two pages per side, for booklet printing:
$ pdftops -level3 source.pdf - | psbook | psnup -2 -W5.5in -H8.5in | ps2pdf - booklet.pdf All of these utilities are standard on a Debian-based system. Several filters are tied together using pipes to produce a properly-formatted PDF.
A Closer Look Here’s a pipe-by-pipe breakdown of the command: