2007年5月15日星期二

name it the booklet PDF cooker/binder, now in bash version

#!/bin/bash
# transforms A4 pdf file into a booklet A4 book.

if [ $# = 1 ]
   then
      pdf2ps $1 - | psbook | psnup -2 | ps2pdf -> $1.booklet.pdf
   else
      echo "usage: pdfbooklet <pdf file>"
      echo "result is named *.booklet.pdf"
fi

# need to work for cups-pdfbooklet printer as an deb package

没有评论: