Signed-off-by: Nico Schottelius <nico@manager.schottelius.org>
This commit is contained in:
Nico Schottelius 2017-07-19 17:15:41 +02:00
commit df2daf524d
641 changed files with 140617 additions and 12 deletions

26
scan-luchsingen.sh Executable file
View file

@ -0,0 +1,26 @@
#!/bin/sh
set -e
set -x
name=$1; shift
if [ "$#" -ge 1 ]; then
source="ADF Duplex"
else
source="ADF Front"
fi
#basename="$name-$(date +%F)"
basename="$name"
batchname="${basename}-%d.pnm"
pdfname="${basename}.pdf"
cd "$dir"
scanimage -d 'fujitsu:ScanSnap S1500:16799' --mode lineart --resolution 300 \
--source "$source" --batch="$batchname" || true
gm convert $(ls -v ${basename}*.pnm) "${basename}.pdf"
rm -f "${basename}"*.pnm