[Tex/LaTex] Option cthek for xcolor package does not produce a CMYK PDF

colorpdf

I am trying to produce a CMYK PDF file to pass onto a printshop.

When I use the [cmyk] option for the xcolor package, the colours in the resulting PDF do look muted and less vibrant as is the case with the CMYK colorspace. For example,

\documentclass{minimal}
\usepackage[cmyk]{xcolor}
\begin{document}
\textcolor{blue}{\fontsize{24}{28}\selectfont A}
\end{document}

when processed by pdflatex produces a PDF file that appears onscreen like a muted, darkish CMYK colorspace document, but when I run ImageMagick's identify command on the PDF using

identify -verbose cmyk.pdf | grep Colorspace

I get

Colorspace: RGB

Surely the PDF uses only one of CMYK or RGB for colour. How can I reliably tell which?

Also, if it is indeed an RGB PDF why does it appear so different from the version I get if the line

\usepackage[cmyk]{xcolor}

is replaced by

\usepackage[rgb]{xcolor}

Thanks in advance.

Best Answer

With using \pdfcompresslevel=0 for PDFTeX or with \pdfvariable compresslevel for LuaTeX I'll get the pdf with no compressed streams and can see what happens inside the pdf.

With the cmyk option I get:

stream
0 0 0 1 k 0 0 0 1 K
0 g 0 G
0 0 0 1 k 0 0 0 1 K
1 1 0 0 k 1 1 0 0 K
BT
/F15 24.7871 Tf 91.925 752.955 Td [(A)]TJ
0 0 0 1 k 0 0 0 1 K
0 0 0 1 k 0 0 0 1 K
0 0 0 1 k 0 0 0 1 K
ET
endstream

and with the rgb option:

stream
0 0 0 rg 0 0 0 RG
0 g 0 G
0 0 0 rg 0 0 0 RG
0 0 1 rg 0 0 1 RG
BT
/F15 24.7871 Tf 91.925 752.955 Td [(A)]TJ
0 0 0 rg 0 0 0 RG
0 0 0 rg 0 0 0 RG
0 0 0 rg 0 0 0 RG
ET
endstream

which is what I would expect, a correct color setting. But printing a RGB color is not the same as printing a CMYK color ...