Great line in bash to decrease file size of PDFs in a folder:

"for file in *.pdf; do gs -sDEVICE=pdfwrite -dPDFSETTINGS=/ebook -q -o resized-$file $file; done"

Thanks #ghostscript

@kirschner great tip! I definitely need to learn more about ghostscript.

There's really no limits to what you can do with well-designed programs and a shell script!

Follow

@kzimmermann @kirschner interesting. I also see that /screen shrinks it even more: gist.github.com/firstdoit/6390 But I usually prefer to ditch JPGs altogether and use pdf2djvu. It seems to substantially shrink PDFs with no noticable quality loss. The extra perk is that is easier to trust (it's just for docs).

Sign in to participate in the conversation
Mastodon 🔐 privacytools.io

Fast, secure and up-to-date instance. PrivacyTools provides knowledge and tools to protect your privacy against global mass surveillance.

Website: privacytools.io
Matrix Chat: chat.privacytools.io
Support us on OpenCollective, many contributions are tax deductible!