-
Notifications
You must be signed in to change notification settings - Fork 0
ghostscript
Marcel Schmalzl edited this page Aug 18, 2019
·
6 revisions
This script will create a compressed file "output.pdf" of the original PDF handed as argument:
# compress_pdf.sh
# Usage ./compress_pdf.sh my-pdf-larger-than-the-universe.pdf
gs -sDEVICE=pdfwrite -dCompatibilityLevel=1.4 -dDownsampleColorImages=true -dColorImageResolution=150 -dNOPAUSE -dBATCH -sOutputFile=output.pdf "$@"
This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License *.
Code (snippets) are licensed under a MIT License *.
* Unless stated otherwise