ADD pdf compression script

This commit is contained in:
Nathan Dwarshuis 2022-08-25 11:20:37 -04:00
parent 43e85d3d2b
commit 7a621835f7
1 changed files with 13 additions and 0 deletions

13
dot_bin/compress_pdf Normal file
View File

@ -0,0 +1,13 @@
#!/bin/bash
# Compress a pdf using ghostscript. I really don't understand what this is
# doing but it seems to work well.
gs -sDEVICE=pdfwrite \
-dCompatibilityLevel=1.4 \
-dPDFSETTINGS=/prepress \
-dNOPAUSE \
-dQUIET \
-dBATCH \
-sOutputFile="$2" \
"$1"