Let's have a look at how to generate PDFs from scanned documents, which are:
- small in file size
- one file per (potentially multi-page) document
- fit to generate a good copy of the original
scanimage --mode=Lineart --resolution=300 --format=tiff > in.tiff
|The same number of colors creates a much clearer picture|
if the input image contained fewer colors.
tiffcp -c lzw page1.tiff page2.tiff ... out.tiff
tiff2pdf -z -pa4 -F out.tiff -o out.pdf
tiff2pdf -z -pa4 -F out.tiff -o out.pdf -a "John Doe" -t "Master's Certificate"