Another solution for multi-pages PDF is to assemble the various PDF files you currently create. This can be done with psbook for example (kind of a hack, but it's doable at least). Here is an example of a simple bash script that does that:
#!/bin/bash
file=$1
filebase=$(basename $file .pdf)
pdftops $file output.ps
psbook output.ps tmp.ps
pstops "4:0L@.7(21cm,0)+1L@.7(21cm,14.85cm),2R@.7(0,29.7cm)+3R@.7(0,14.85cm)" tmp.ps > ${filebase}-booklet.ps
rm -f output.ps tmp.ps
echo "Converting back to pdf (Should be ${filebase}-booklet.pdf) ..."
ps2pdf ${filebase}-booklet.ps
rm -f ${filebase}-booklet.ps
Hi there :-)
Another solution for multi-pages PDF is to assemble the various PDF files you currently create. This can be done with psbook for example (kind of a hack, but it's doable at least). Here is an example of a simple bash script that does that:
#!/bin/bash
file=$1 7(21cm, 0)+1L@. 7(21cm, 14.85cm) ,2R@.7( 0,29.7cm) +3R@.7( 0,14.85cm) " tmp.ps > ${filebase} -booklet. ps -booklet. pdf) ..." -booklet. ps -booklet. ps
filebase=$(basename $file .pdf)
pdftops $file output.ps
psbook output.ps tmp.ps
pstops "4:0L@.
rm -f output.ps tmp.ps
echo "Converting back to pdf (Should be ${filebase}
ps2pdf ${filebase}
rm -f ${filebase}