Catch up on stories from the past week (and beyond) at the Slashdot story archive


Forgot your password?
DEAL: For $25 - Add A Second Phone Number To Your Smartphone for life! Use promo code SLASHDOT25. Also, Slashdot's Facebook page has a chat bot now. Message it for stories and more. Check out the new SourceForge HTML5 Internet speed test! ×
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:

# 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

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

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


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

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

Nothing succeeds like excess. -- Oscar Wilde