Last active
May 5, 2018 01:07
-
-
Save junichi11/9f8a8abf42430fac25c89d217776a341 to your computer and use it in GitHub Desktop.
[Inkscape] Convert from RGB to CMYK
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
#!/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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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