scanimage --format=pbm --resolution 300 -x 148 -y 210 > /tmp/scantopdf.pbm
pnmtops -equalpixels -dpi 300 -width 4 -height 8 /tmp/scantopdf.pbm > /tmp/scantopdf.ps
ps2pdf -dEPSCrop /tmp/scantopdf.ps /tmp/scantopdf_08.pdf