Alex/to pdf
<highlightSyntax language="bash">
- !/bin/bash
n=0; tempdir=`mktemp -d`
for datei
do i=`printf "%04d" $n` echo -n "$datei " 1>&2; convert $datei -normalize $tempdir/$i.jpeg jpeg2ps -a -q -b -p a4 $tempdir/$i.jpeg > $tempdir/$i.jpeg.eps echo "$n done" 1>&2; n=$((n+1))
done
gs -dNOPAUSE -sDEVICE=pdfwrite -sOutputFile=$tempdir/out.pdf `ls $tempdir/*.jpeg.eps` -c quit > /dev/null
cat $tempdir/out.pdf
rm -rf $tempdir </highlightSyntax>