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.

#!/bin/sh

# usage booklet.sh infile.pdf pages
pdftops -paper match $1 booklet1.ps && \
psbook -s $2 booklet1.ps booklet2.ps && \
ps2pdf booklet2.ps booklet3.pdf && \
pdfnup --nup 2x1 booklet3.pdf --outfile `echo $1|sed 's/.pdf$//i'`-booklet.pdf && \
rm booklet1.ps booklet2.ps 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