Created
January 20, 2017 18:59
-
-
Save agarie/ff6798a6ebdecd476408beb309378ba4 to your computer and use it in GitHub Desktop.
Convert the colors of a PDF file from RGB to CMYK for printing.
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
#!/usr/bin/zsh | |
gs -dSAFER -dBATCH \ | |
-dNOPAUSE -dNOCACHE -sDEVICE=pdfwrite \ | |
-sColorConversionStrategy=CMYK \ | |
-dProcessColorModel=/DeviceCMYK \ | |
-sOutputFile=$2 \ | |
$1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment