Pither.com / Simon
Articles tagged with "bash"

Multiple page scan to PDF

Xsane does do this, but it's an awful lot of clicks, even between pages and that's after you've got to the right screen and before you eventually output the file.

So here's a simple bash script to the rescue...

#!/bin/bash

export DEVICE="device, use 'scanimage -L' to see list"

echo Pages: $1
echo Filename: $2

FILENAME_BASE="/tmp/$2"

for …

full article