sudo apt-get install sane http://www.avision.de/index.php?content=AV8350 http://www.kirchgessner.net/sane.html sudo geany /etc/sane.d/hp.conf option dumb-read lsusb Bus 004 Device 007: ID 03f0:0601 Hewlett-Packard ScanJet 6300c man sane-hp man sane-usb scanadf --help scanadf --help -d hp:libusb:001:003 scanadf --list-devices --verbose --output-file ~/scanjet-output usb 0x03f0 0x0601 --device-name cat /etc/sane.d/hp.conf # HP ScanJet 63X0C usb 0x03f0 0x0601 --scantype=ADF --device-name hp scanadf --verbose --device-name hp --source adf --resolution 600 --mode color -x 209.99mm -y 296.888mm --output-file image-%04d. scanadf --verbose --device-name hp --source adf --resolution 600 --mode grayscale -x 209.99mm -y 296.888mm --output-file image-%04d. scanadf --verbose --device-name hp --source adf --resolution 300 --mode grayscale -x 209.99mm -y 296.888mm --output-file image-%04d. scanadf --verbose --device-name hp --source adf --resolution 600 --mode lineart -x 210mm -y 297mm --output-file image-%04d.pbm scanadf --verbose --device-name hp --no-overwrite --scan-script ~/scanjet/scanjet-scanscript.sh --output-file ~/scanjet/image-0003.pbm --source adf --resolution 600 --mode lineart -x 210.000mm -y 297.000mm scanadf --verbose --device-name hp --source adf --speed fast --mode halftone cjb2 -verbose -clean image-%04d.pbm document-%04d.djvu sudo apt-get install gscan2pdf scanimage --help scanimage --verbose --progress --device-name hp --batch --mode gray --format pnm -x 210 -y 297 -- -- -- -- -- sudo apt-get install djvulibre-bin djvulibre-plugin convert image-0001.pbm document.djvu convert: unable to open module file `/usr/lib/ImageMagick-6.2.4/modules-Q16/coders/djvu.la': No such file or directory. tested: is broken - 05-01-2008 - Jelle de Jong -- -- -- -- -- -- -- -- -- -- # converting scanned pbm image to djvu document cjb2 -verbose -clean -dpi 300 ~/scanjet/image-0002.pbm ~/scanjet/document-0002.djvu # extract scanned pbm image back out of the djvu document ddjvu -verbose -format=pbm ~/scanjet/document-0002.djvu ~/scanjet/image-ddjvu-0002.pbm tested: working perfect - 05-01-2008 - Jelle de Jong -- -- -- -- -- -- -- -- -- -- lpoptions -p "HP_PSC_2110" -l lpoptions -p "HP_PSC_2110" -o PageSize=A4 -o PrintoutMode=High.Gray -o InputSlot=Default -o Duplex=None -o Quality=600GrayscaleCMYK lpr -P "HP_PSC_2110" -#1 -o Collate=True -o media=A4 -o outputorder=normal -o sides=one-sided -o scaling=100 -o saturation=0 ~/scanjet/image-0001.pbm lpr -P "HP_PSC_2110" -#1 -o Collate=True -o media=A4 -o outputorder=normal -o sides=one-sided -o scaling=100 -o saturation=0 -o page-left=0 -o page-right=0 -o page-top=0 -o page-bottom=0 ~/scanjet/image-0001.pbm tested: printing pbm images is borking, created bug report for cups - 06-01-2008 - Jelle de Jong bug report: http://www.cups.org/str.php?L2653 -- -- -- -- -- -- -- -- -- -- # prepairing the source image for printing: bug report: http://www.cups.org/str.php?L2653 convert ~/scanjet/image-0001.pbm ~/scanjet/image-0001.png identify ~/scanjet/image-0001.png # set the printer settings and the print the image with the cups commands, this is without setting the page margings lpoptions -p "HP_PSC_2110" -o PageSize=A4 -o PrintoutMode=High.Gray -o InputSlot=Default -o Duplex=None -o Quality=600GrayscaleCMYK lpr -P "HP_PSC_2110" -#1 -o Collate=True -o media=A4 -o outputorder=normal -o sides=one-sided -o scaling=100 -o saturation=0 ~/scanjet/image-0001.png tested: this will result in a printout that is not 1:1 with the source image because the margins of the printer configuration - 06-01-2008 - Jelle de Jong # set the printer settings and the print command, this is with the page margins set lpoptions -p "HP_PSC_2110" -o PageSize=A4 -o PrintoutMode=High.Gray -o InputSlot=Default -o Duplex=None -o Quality=600GrayscaleCMYK lpr -P "HP_PSC_2110" -#1 -o Collate=True -o media=A4 -o outputorder=normal -o sides=one-sided -o scaling=100 -o saturation=0 -o page-left=0 -o page-right=0 -o page-top=0 -o page-bottom=0 ~/scanjet/image-0001.png tested: this will result in a good match with the source image, unlike what the documentation explains about the print margins these options also works with images. - 06-01-2008 - Jelle de Jong documentation: http://www.cups.org/documentation.php/options.html -- -- -- -- -- -- -- -- -- -- scanadf --verbose --device-name hp --no-overwrite --scan-script ~/scanjet/scanjet-scanscript.sh --output-file ~/scanjet/image-0003.pbm --source adf --resolution 600 --mode lineart -x 210.000mm -y 297.000mm cjb2 -verbose -clean -dpi 600 ~/scanjet/image-0003.pbm ~/scanjet/document-0003.djvu djvups -verbose -format=ps -copies=1 -orientation=auto -color=no ~/scanjet/document-0003.djvu ~/scanjet/document-0003.ps 210mm x 297mm (21.0/2.54) x 600 = 4960.629 = 4960 (29.7/2.54) x 600 = 7015.758 = 7015 convert -crop 4960x7015 ~/scanjet/image-0003.pbm ~/scanjet/image-convert-0003.pbm cjb2 -verbose -clean -dpi 600 ~/scanjet/image-convert-0003.pbm ~/scanjet/document-convert-0003.djvu djvups -verbose -format=ps -level=3 -orientation=portrait -color=no -zoom=100 ~/scanjet/document-multi-page.djvu ~/scanjet/document-multi-page.ps %%Pages: 6 %%BoundingBox: 0 0 595 842 <>setpagedevice http://opencircuitdesign.com/xcircuit/ lpoptions -p "Generic_PCL_6_Printer" -l lpr -P "Generic_PCL_6_Printer" -#1 -o Collate=True -o media=A4 -o page-ranges=1 -o outputorder=normal -o sides=one-sided ~/scanjet/document-multi-page.ps -- -- -- -- -- -- -- -- -- -- identify -verbose image-0001.pbm image-0001.pbm PNM 4962x7018 PseudoClass 2c 4.2mb 2.890u 0:04 -- -- -- -- -- D [06/Jan/2008:20:24:40 +0000] [Job 175] Copying page 1... D [06/Jan/2008:20:24:40 +0000] [Job 175] pagew = 559.0, pagel = 813.2 D [06/Jan/2008:20:24:40 +0000] [Job 175] bboxw = 595, bboxl = 842 D [06/Jan/2008:20:24:40 +0000] [Job 175] PageLeft = 18.0, PageRight = 577.0 D [06/Jan/2008:20:24:40 +0000] [Job 175] PageTop = 827.6, PageBottom = 14.4 D [06/Jan/2008:20:24:40 +0000] [Job 175] PageWidth = 595.0, PageLength = 842.0 http://www.testfreaks.com/blog/review/fujitsu-scansnap-s300-instant-pdf-sheet-fed-mobile-scanner/ http://www.documentsnap.com/fujitsu-scansnap-in-linux/ http://www.imagemagick.org/script/command-line-options.php?ImageMagick=i6lh09q3g2r0i9brphtfajsse7#compress ocrodjvu $OUTDIR/scanscript/processing/document-single-page-$filename.djvu --language=nld -i $OUTDIR/scanscript/output/document-multi-page-lineart-ocr.djvu