Created
December 8, 2018 18:20
-
-
Save estroz/98d5bd764fc6a94b7e28a5f5c9b2bb59 to your computer and use it in GitHub Desktop.
PFD quality conversion on linux
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# From https://askubuntu.com/questions/113544/how-can-i-reduce-the-file-size-of-a-scanned-pdf-file/256449#256449 | |
gs -sDEVICE=pdfwrite \ | |
-dCompatibilityLevel=1.4 \ | |
# -dPDFSETTINGS=/screen lower quality, smaller size. (72 dpi) | |
# -dPDFSETTINGS=/ebook for better quality, but slightly larger pdfs. (150 dpi) | |
# -dPDFSETTINGS=/prepress output similar to Acrobat Distiller "Prepress Optimized" setting (300 dpi) | |
# -dPDFSETTINGS=/printer selects output similar to the Acrobat Distiller "Print Optimized" setting (300 dpi) | |
# -dPDFSETTINGS=/default selects output intended to be useful across a wide variety of uses, possibly at the expense of a larger output file | |
-dPDFSETTINGS=/ebook \ | |
-dNOPAUSE -dQUIET -dBATCH \ | |
-sOutputFile=output.pdf \ | |
input.pdf |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment