cat $1 | \
gs -sDEVICE=ppmraw -q -sPAPERSIZE=a4 -dNOPAUSE -r600 -sOutputFile=- - | \
./pnm2ppa --bw --eco $2 $3 $4 $5 -i - -o  /dev/lp0
