Created
June 17, 2016 11:52
-
-
Save cbrocas/088df03a5aeafad0cd94fe9cfed8e5de to your computer and use it in GitHub Desktop.
Convert a PDF file into a PDF with CMYK color type (thank doegox)
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
file="$1" | |
gs -dSAFER -dBATCH \ | |
-dNOPAUSE -dNOCACHE -sDEVICE=pdfwrite \ | |
-sColorConversionStrategy=CMYK \ | |
-dProcessColorModel=/DeviceCMYK \ | |
-sOutputFile="${file%.pdf}_cmyk.pdf" \ | |
"$file" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
src : http://stackoverflow.com/posts/8567524/revisions