scanadf
TLDR
Scan all pages from the document feeder
SYNOPSIS
scanadf [-d device] [-o file] [-s num] [-e num] [-S script] [device-options]
DESCRIPTION
scanadf is a command-line tool for acquiring multiple images from scanners with automatic document feeders (ADF). It scans pages sequentially until the feeder is empty, writing each page to a numbered output file.
The tool uses the SANE interface and supports any scanner with a SANE backend. Output is typically in PNM format (PBM, PGM, or PPM depending on scan mode). Scanner-specific options like resolution and source can be passed directly.
Some scanners require specific source options: UMAX uses --source="Automatic Document Feeder", HP uses --scantype=ADF.
PARAMETERS
-d device, --device-name=device
Use the specified scanner device-o file, --output-file=file
Output filename format; %d is replaced with page number-s num, --start-count=num
Page number of first scanned image-e num, --end-count=num
Last page number to scan-S script, --scan-script=script
Script to run after each image is acquired-N, --no-overwrite
Prevent overwriting existing image files-r, --raw
Write raw image data without interpretation-L, --list-devices
List available scanner devices-v, --verbose
Increase verbosity level
CAVEATS
The scanner backend must support ADF and return SANESTATUSNO_DOCS when the feeder is empty. Using scanadf with flatbed-only scanners will repeatedly scan the same page; always use -e to limit page count. The %d placeholder in output filenames is required for multiple pages.
HISTORY
scanadf is part of the SANE (Scanner Access Now Easy) project, providing specialized support for document feeders. It complements scanimage by handling the multi-page workflow common in document scanning scenarios.
SEE ALSO
scanimage(1), sane-find-scanner(1), xsane(1), convert(1)


