Updated: Dec. 3, 2010, 7:21 p.m.

Booklet Printing

Turn a regular A4-format PDF into a neat little book.

#!/bin/sh
A4FILE='original'
pdftops -paper match $A4FILE.pdf - | \
 psbook -s12 | \
 psnup -2 -w21cm -h29.7cm -Pa4 | \
 ps2pdf -dMaxSubsetPct=100 -dCompatibilityLevel=1.4 \
 -dSubsetFonts=true -dEmbedAllFonts=true - $A4FILE.booklet.pdf