Linux command
scanadf 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Scan all pages from the document feeder
scanadf -o [output_%d.pnm]
Scan a specific number of pages
scanadf -e [5] -o [page_%d.pnm]
Scan starting from a specific page number
scanadf -s [1] -o [scan_%d.pnm]
Scan with a specific device
scanadf -d [device_name] -o [output_%d.pnm]
Run a script after each page
scanadf -S [process.sh] -o [page_%d.pnm]
Scan without overwriting existing files
scanadf -N -o [output_%d.pnm]
说明
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.
参数
- -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
FAQ
What is the scanadf command used for?
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.
How do I run a basic scanadf example?
Run `scanadf -o [output_%d.pnm]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does -d _device_, --device-name=_device_ do in scanadf?
Use the specified scanner device