Message-ID: <rq6tut$bqs$1@ciao.gmane.io>
Date: 2020-12-02T02:25:33Z
From: Derek Jones
Subject: RGB -> CYMK, with consistent colors
In-Reply-To: <CAGAA5bcZMLXm6-3izgs8hw26PKOem_e8zf3D4=YEEyuuZv2MTQ@mail.gmail.com>
Martin,
> However after some testing.
> I totally agree that CMYK handling in R using pdf(..., colormodel = "cmyk")
> is not correct.
Looking at the source code of the function PostScriptSetCol
in file src/librarygrDevices/src/devPS.c
the conversion to CMYK looks correct.
Looking at the generated pdf (qpdf: https://github.com/qpdf/qpdf is
needed to uncompress the pdf)
the numeric color values look correct, although the pdf contents don't exactly
match those generated by PostScriptSetCol
It is possible the problem is in the conversion that occurs when
displaying/printing a pdf.