Created
April 3, 2019 16:48
-
-
Save edthrn/13d3ba31da2cfbd68730352f159c4b76 to your computer and use it in GitHub Desktop.
Reduce PDF size from Ubuntu command-line
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
#!/bin/sh | |
# From https://askubuntu.com/a/626301 | |
gs \ | |
-sDEVICE=pdfwrite \ | |
-dCompatibilityLever=1.4 \ | |
-dPDFSETTINGS=/default \ | |
-dNOPAUSE \ | |
-dQUIET \ | |
-dBATCH \ | |
-dCompressFonts=true \ | |
-r150 \ | |
-sOutputFile=output.pdf \ | |
{PATH_TO_FILE}.pdf |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment