| Brother drivers for Linux > more information ( scan-key-tool ) |
| Parameters |
|---|
|
IMAGE=(The script for scan-to-image selection) OCR=(The script for scan-to-ocr selection) ***Scan-to-OCR is not available EMAIL=(The script for scan-to-email selection) FILE=(The script for scan-to-file selection) |
Default shell script for scan-to-image; /usr/local/Brother/sane/script/scantoimage-0.2.1-1.sh Default shell script for scan-to-file; /usr/local/Brother/sane/script/scantofile-0.2.0-1.sh Default shell script for scan-to-email; /usr/local/Brother/sane/script/scantoemail-0.2.0-1.sh
Example: Multiple sheets are scanned from ADF using scan-to-file, and it is made into one PDF file.
Change the file(/usr/local/Brother/sane/script/scantofile-x.x.x-x.sh) as follows.
NOTE:scanadf, pnmtops, and ps2pdf need to be installed.
--------------------------------------------------------------
#! /bin/sh
set +o noclobber
#
# $1 = scanner device
# $2 = friendly name
#
#
# 100,200,300,400,600
#
resolution=100
device=$1
BASE=˜/brscan
mkdir -p $BASE
if [ "`which usleep`" != ' ' ];then
usleep 10000
else
sleep 0.01
fi
output_tmp=$BASE/$(date | sed s/' '/'_'/g | sed s/'\:'/'_'/g)
echo "scan from $2($device)"
scanadf --device-name "$device" --resolution $resolution -o"$output_tmp"_%04d
for pnmfile in $(ls "$output_tmp"*)
do
echo pnmtops "$pnmfile" "$pnmfile".ps
pnmtops "$pnmfile" > "$pnmfile".ps
rm -f "$pnmfile"
done
echo psmerge -o"$output_tmp".ps $(ls "$output_tmp"*.ps)
psmerge -o"$output_tmp".ps $(ls "$output_tmp"*.ps)
echo ps2pdf "$output_tmp".ps "$output_tmp".pdf
ps2pdf "$output_tmp".ps "$output_tmp".pdf
#cleanup
for psfile in $(ls "$output_tmp"*.ps)
do
rm $psfile
done
rm -f "$pnmfile".ps
--------------------------------------------------------------
# dpkg -P brscan-skey (Reading database ... 104231 files and directories currently installed.) Removing brscan-skey ... #
# dpkg -l | grep Brother #
# rpm -e brscan-skey #
# rpm -qa | grep brscan-skey #