Skip to content

Instantly share code, notes, and snippets.

@jvns

jvns/scan.sh Secret

Created March 8, 2022 13:52
Show Gist options
  • Select an option

  • Save jvns/b5651fd6272eddcd935e5e30874a935f to your computer and use it in GitHub Desktop.

Select an option

Save jvns/b5651fd6272eddcd935e5e30874a935f to your computer and use it in GitHub Desktop.
#!/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
@fcuny

fcuny commented Mar 9, 2022

Copy link
Copy Markdown

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment