Please create an account to participate in the Slashdot moderation system

 



Forgot your password?
typodupeerror
Check out the new SourceForge HTML5 internet speed test! No Flash necessary and runs on all devices. ×
User Journal

Journal mercuryresearch's Journal: scan2pdf script

So, I had a query regarding the scan2pdf script mentioned in a comment... but seem to be unable to respond.

For those who care:

#!/bin/sh
# scan2pdf
#
# modprobe scanner if there is a fault.

while scanimage --mode binary --source "Automatic Document Feeder" --auto-eject=yes \
--resolution 300 -x 203 -y 280 >/tmp/s2pdf$$.pnm
do

    convert -page letter -compress fax /tmp/s2pdf$$.pnm /tmp/s2pdf$$.ps

cat /tmp/s2pdf$$.ps >>/tmp/s2pdfout$$.ps

done

if [ $1 != "" ]; then
        ps2pdf /tmp/s2pdfout$$.ps $1.pdf
else
        ps2pdf /tmp/s2pdfout$$.ps scan.pdf
fi

rm /tmp/s2pdfout$$.ps /tmp/s2pdf$$.pnm /tmp/s2pdf$$.ps

1 1 was a race-horse, 2 2 was 1 2. When 1 1 1 1 race, 2 2 1 1 2.

Working...