Files
hp-scan/README.md
2026-07-24 15:07:31 +05:00

34 lines
918 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# HP M1217 scanner
The scanner runs in an Alpine Linux container. Build the image and scan one
page from the flatbed with:
```sh
make scan
```
The resulting PDF is written to `scans/`. The command passes the current user
and group IDs to the container, so the PDF is owned by the invoking user.
Optional settings can be passed to `make`:
```sh
RESOLUTION=600 MODE=Gray make scan
```
Supported variables are `RESOLUTION`, `MODE`, `SCAN_SOURCE`, `SCAN_WIDTH`,
`SCAN_HEIGHT`, `JPEG_QUALITY`, `SCAN_TIMEOUT` (seconds), and `SANE_DEVICE`.
The default flatbed area is `215.9 × 297 mm`; override it when using a
different source or page size.
If an interrupted run leaves a container behind, the next `make scan` removes
that exact scan container before opening the USB device.
Remove the scanner container, Compose resources, and the built image with:
```sh
make clean
```
Scanned PDFs in `scans/` are preserved.