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.

 
Back to top
howto/creating_a5_booklets_from_pdf.txt · Last modified: 2010/10/11 14:34 by disorder
 
 
disorder's homepage Valid CSS Valid XHTML 1.0 Recent changes RSS feed