Skip to content

Instantly share code, notes, and snippets.

@junichi11
Last active May 5, 2018 01:07
Show Gist options
  • Save junichi11/9f8a8abf42430fac25c89d217776a341 to your computer and use it in GitHub Desktop.
Save junichi11/9f8a8abf42430fac25c89d217776a341 to your computer and use it in GitHub Desktop.
[Inkscape] Convert from RGB to CMYK
#!/bin/bash
# http://zeroset.mnim.org/2014/07/14/save-a-pdf-to-cmyk-with-inkscape/
# usage
# inkscape_convert_to_cmyk.sh /path/to/input_rgb.pdf /path/to/output_cmyk.pdf
gs -dSAFER -dBATCH -dNOPAUSE -dNOCACHE \
-sDEVICE=pdfwrite \
-sColorConversionStrategy=CMYK \
-dProcessColorModel=/DeviceCMYK \
-sOutputFile=$2 \
$1
@junichi11
Copy link
Author

junichi11 commented May 5, 2018

Step1: Create a new RGB pdf with inkscape e.g. rgb.pdf
Step2: Run the script e.g. sh inkscape_convert_to_cmyk.sh rgb.pdf cmyk.pdf

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