NAME
scanadf - acquire multiple images from a scanner equipped with an ADFSYNOPSIS
scanadf [-d|--device-name dev] [-h|--help] [-L|--list-devices] [-v|--verbose] [-V|--version] [-o|--output-file name] [-N|--no-overwrite] [-S|--scan-script name] [--script-wait] [-s|--start-count num] [-e|--end-count num] [-r|--raw] [device-specific-options]DESCRIPTION
scanadf is a command-line interface to control image acquisition devices which are capable of returning a series of images (e.g. a scanner with an automatic document feeder (ADF)). The device is controlled via command-line options. After command-line processing, scanadf normally proceeds to acquire a series of images until the device returns the SANE_STATUS_NO_DOCS status code. The images are written to output files, specified by the --output-file option. These files are typically written in one of the PNM (portable aNyMaP) formats (PBM for black-and-white images, PGM for grayscale images, and PPM for color images). Several optional frame formats (SANE_FRAME_JPEG, SANE_FRAME_G31D, SANE_FRAME_G32D, SANE_FRAME_G42D, and SANE_FRAME_TEXT) are supported. In each case, the data is written out to the output file as-is without a header. Unrecognized frame formats are handled in the same way, although a warning message is printed in verbose mode. Typically, the optional frame formats are used in conjunction with a scan script (specified by the --scanscript option) which is invoked for each acquired image. The script is provided with a series of environment variables which describe the parameters and format of the image file.OPTIONS
The -d or --device-name options must be followed by a SANE device-name. A (partial) list of available devices can be obtained with the --list-devices option (see below). If no device-name is specified explicitly, scanadf will attempt to open the first available device. The -h or --help options request help information. The information is printed on standard output and in this case, no attempt will be made to acquire an image. The -L or --list-devices option requests a (partial) list of devices that are available. The list is not complete since some devices may be available, but are not listed in any of the configuration files (which are typically stored in directory @CONFIGDIR@). This is particularly the case when accessing scanners through the network. If a device is not listed in a configuration file, the only way to access it is by its full device name. You may need to consult your system administrator to find out the names of such devices. The -v or --verbose options increase the verbosity of the operation of scanadf. The option may be specified repeatedly, each time increasing the verbosity level.
SCAN_RES - the image resolution (in
DPI)
SCAN_WIDTH - the image width (in pixels)
SCAN_HEIGHT - the image height (in pixels)
SCAN_DEPTH - the image bit-depth (in bits)
SCAN_FORMAT - a string representing the image format (e.g. gray, g42d,
text, etc)
SCAN_FORMAT_ID - the numeric image format identifier
scanadf --help --device dev
The documentation for the device-specific options printed by --help is
explained in the manual page for scanimage.
FILES
- @CONFIGDIR@
- This directory holds various configuration files. For details, please refer to the manual pages listed below.
SEE ALSO
scanimage(1), xscanimage(1), sane(7)AUTHOR
scanadf is an adaptation by Tom Martone of scanimage by David Mosberger, Andreas Beck, and Gordon Matzigkeit following closely the features of bnhscan by Sean Reifschneider of tummy.com, ltd.BUGS
Please send reports to [email protected]. This program relies on the backend to return the SANE_STATUS_NO_DOCS status code when the automatic document feeder is out of paper. Use of this program with backends that do not support ADFs (e.g. flatbed scanners) will likely result in repeated scans of the same document. In this case, it is essential to use the start-count and end-count to control the number of images acquired.30 Oct 2004 |