For PDF, specifically, I recall @koogs working on CMYK output on an old thread here:
For a sketch that produces C M Y K images from an input image, see this thread:
For PDF, specifically, I recall @koogs working on CMYK output on an old thread here:
For a sketch that produces C M Y K images from an input image, see this thread: