Created
July 18, 2016 18:08
-
-
Save anderflash/5d0fb7eef03293ca670ac2c49551a7a7 to your computer and use it in GitHub Desktop.
Convert PDF to Grayscale
This file contains hidden or 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/bash | |
gs \ | |
-sOutputFile=$2 \ | |
-sDEVICE=pdfwrite \ | |
-sColorConversionStrategy=Gray \ | |
-dProcessColorModel=/DeviceGray \ | |
-dCompatibilityLevel=1.4 \ | |
-dNOPAUSE \ | |
-dBATCH \ | |
$1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment