💾 Archived View for chirale.org › 2018-04-04_4235.gmi captured on 2024-08-18 at 17:31:24. Gemini links have been rewritten to link to archived content

View Raw

More Information

⬅️ Previous capture (2024-05-12)

-=-=-=-=-=-=-

How to shrink a scanned PDF on Linux

When you want to reduce the file size of a PDF document, this quick command using convert will shrink the original PDF file.

convert

 convert -density 150x150 -quality 60 -compress jpeg -colorspace Gray original.pdf new.pdf 

This command is particularly useful against scanned documents, the jpeg quality will be 60% for 150dpi.

Converting an original 300dpi / color PDF to a 150dpi, greyscale PDF can reduce file size up to 50%. There will be some quality loss but in this way you can reduce file size enough to send scanned documents of dozens of pages via e-mail without using third-party services.

https://web.archive.org/web/20180404000000*/https://www.imagemagick.org/script/command-line-processing.php