Skip to content

Instantly share code, notes, and snippets.

@cbrocas
Created June 17, 2016 11:52
Show Gist options
  • Save cbrocas/088df03a5aeafad0cd94fe9cfed8e5de to your computer and use it in GitHub Desktop.
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)
file="$1"
gs -dSAFER -dBATCH \
-dNOPAUSE -dNOCACHE -sDEVICE=pdfwrite \
-sColorConversionStrategy=CMYK \
-dProcessColorModel=/DeviceCMYK \
-sOutputFile="${file%.pdf}_cmyk.pdf" \
"$file"
@cbrocas
Copy link
Author

cbrocas commented Jun 17, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment