README.md: add example of how to use img2pdf together with scanimage

This commit is contained in:
Johannes Schauer Marin Rodrigues 2024-09-11 11:35:07 +02:00
parent 5540365cfd
commit 4b549592bf
Signed by: josch
GPG key ID: F2CBA5C78FBD83E1

View file

@ -65,6 +65,12 @@ The detailed documentation can be accessed by running:
$ img2pdf --help
With no command line arguments supplied, img2pdf will read a single image from
standard input and write the resulting PDF to standard output. Here is an
example for how to scan directly to PDF using scanimage(1) from SANE:
$ scanimage --mode=Color --resolution=300 | pnmtojpeg -quality 90 | img2pdf > scan.pdf
Bugs
----