One of the best things since sliced bread, IMHO, is automatic scan to email/pdf functionality on the multi-function copier/printer/scanner/fax. This makes copying print articles easy so that you can send them to friends, or keep an article out of something you borrowed. My personal philosophy is \”scan once, process as needed.\” That means I scan at a high resolution, and go from there.
Now, say you want to share that article, whatever with your friend… and that high-res PDF is too big to email… or they have a slow net connection… you get the idea. How do you shrink the PDF easily? Ghostscript is part of the answer. The other part is, write a script. What we have below is a script that takes multiple input files and runs each of them through ghostscript with its screen settings and outputs it with _small at the end of the base filename. Most of the logic in the script is just for parsing the file name and path to get the extension of the base filename in the right place.Continue reading