I recently scanned some letters and wanted to send them via email. However, the filesize was not what I like it to be to send it via mail. I was searching for a command line tool and then came across this page (from Alfred Klomp): Shrinkpdf – just make yourself a nice bash script using ghostscript. I increased quality a bit, so I came to this version:
gs -q -dNOPAUSE -dBATCH -dSAFER \
Just save this as an executable file [e.g. on the terminal type:
mcedit shrinkpdf; paste the code from above, save(F2) and exit (F10), make it executable (
chmode u+x shrinkpdf)] and then type:
./shrinkpdf input.pdf (the latter being the pdf-file to compress) and you will obtain a file called out.pdf containing a compressed version of input.pdf.