These are archived pages, most of them date back to 2007-2012. This content might not be relevant or accurate anymore.

Creating A5 booklets from PDF

This script takes PDF file and number of pager (multiply of 4) and creates new PDF ordered for booklet printing.

⚠️ Make sure you’re using the right paper orientation and ordering when printing in batches (odd, even pages) – you should try it on 4-page document first. Not tested on duplex printer.


# usage infile.pdf pages
pdftops -paper match $1 && \
psbook -s $2 && \
ps2pdf booklet3.pdf && \
pdfnup --nup 2x1 booklet3.pdf --outfile `echo $1|sed 's/.pdf$//i'`-booklet.pdf && \
rm booklet3.pdf

There might be better solution using pdfbook but I don’t know how to make it use the right ordering.

disorder's homepage