Created
November 2, 2017 13:34
-
-
Save twerp/0765cb0b79f7d866802b2950d236eda1 to your computer and use it in GitHub Desktop.
Use GhostScript (for Windows) to optimize a PDF doc
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
gswin64c.exe -o "%~n1-optimized.pdf" -sDEVICE=pdfwrite -dPDFSETTINGS=/default %1 |
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
gswin64c.exe -o "%~n1-optimized.pdf" -sDEVICE=pdfwrite -dPDFSETTINGS=/prepress %1 |
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
@echo off | |
FOR %%a IN (*.pdf) DO call optimize.bat "%%a" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment