-
-
Save jvns/b5651fd6272eddcd935e5e30874a935f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -e | |
DIR=`mktemp -d` | |
CUR=$PWD | |
cd $DIR | |
scanimage -b --format png -d 'fujitsu:ScanSnap S1500:2314' --source 'ADF Duplex' --resolution 300 | |
convert *.png $CUR/$1 | |
rm -r $DIR | |
evince $CUR/$1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You might already know about this, but you can also combine this with https://tesseract-ocr.github.io/tessdoc/Home.html to do OCR and get the text in the PDF to make it possible to search for the content.