Take the 2-minute tour ×
Mathematica Stack Exchange is a question and answer site for users of Mathematica. It's 100% free, no registration required.

Consider any standard plot, with true CMYK black text:

fakedata = 
  Transpose@{DatePlus[{2001, 1}, {#, "Month"}] & /@ Range[0, 99], 
    Accumulate[RandomVariate[NormalDistribution[0, 1], {100}]] - 2};
myplot = DateListPlot[fakedata, Joined -> True, 
  BaseStyle -> {20, CMYKColor[0, 0, 0, 1]}]

Mathematica graphics

When I Export to PDF format, the text does not reproduce as true CMYK black, even if I specify its color as a CMYKColor. Rather, it comes out as CMYKColor[1,1,1,1], a mix of all four CMYK colors. This is a nuisance as my use case is to export these graphics for importing into an InDesign document, and the result is fuzzy-looking text. Strangely, the plot's Frame is not affected by this problem, which makes me think it is something to do with the text rendering algorithm.

Using ColorConvert doesn't help because that just rasterizes the image, which looks terrible. It is designed for images, not vector graphics.

 Export["test-converted3.pdf", ColorConvert[myplot, "CMYK"]] (* ugliness ensues *)

While I can fix the problem by getting the graphic designer to re-distill the PDF, I would much prefer to have a direct solution in Mathematica.

There is a supposedly obsolete option ColorOutput -> "CMYK", but it doesn't seem to make a difference.

I considered that the issue might be something to do with the way Mathematica antialiases text, but I couldn't work out what setting might affect that. Does anyone have any suggestions for a direct Mathematica solution?

share|improve this question
Is this a homework problem? –  Mike Honeychurch Oct 25 '13 at 4:44
@MikeHoneychurch Haha - no, it's a do-it-in-my-lunchtimes-on-top-of-my-official-job problem :-D –  Verbeia Oct 25 '13 at 4:46
Couldn't resist taking the pi55 @Verbeia :) BTW Jens seems to be the guy around here who best understands how to fix PDF but you may have to wait for him to be online. –  Mike Honeychurch Oct 25 '13 at 4:48
An EPS file exported seems to preserve the CMYK value: 0 0 0 1 k. Don't know whether EPS->PDF conversion changes it though, and you may be using translucency... –  cormullion Oct 25 '13 at 8:27
@cormullion unfortunately EPS -> PDF is not an option because of font substitution issues. –  Verbeia Oct 25 '13 at 9:41

1 Answer 1

Not a complete answer, but the PDF file exported from Mathematica 8.0.4 does not have CMYK text at all. All the text and GridLines are RGB and only Frame and FrameTicks are CMYK (but not frame tick labels). Here is output of Preflight in Acrobat 11.0.5:


I cannot check the output of Mathematica 9, but I suppose that the text is exported actually in RGB mode and is converted to CMYK when imported into the InDesign document.

share|improve this answer
Thanks Alexey, yes this accords with what my colleagues are telling me when they preflight the PDF produced from Mma 9. –  Verbeia Oct 25 '13 at 7:20

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.