I am trying to produce a pdf in a CMYK colorspace with an additional spotcolor, and make sure black on a spotcolor background is "overprinted", i.e. that if I look at the color separation of the resulting pdf, the background color channel should be solid, not with cutouts for the characters printed on top of the background.
I found the colorspace package which appears to have this functionality, but I can't seem to get it to work. I may very well be overlooking something obvious, but if I compile:
\documentclass{article}
\usepackage{lipsum}
\usepackage[overprint]{colorspace}
\usepackage{tikz} %% (Almost) works when not loading TikZ
\definespotcolor{spot}{Spotcolor}{0,1,0,0}
\begin{document}
\pagecolor{spot!50}
\lipsum[1]
\overprintstate{1}
\lipsum[1]
\end{document}
I get a resulting pdf-file which looks like this in Acrobat
Hiding the black channel, I see
I would have expected (at the very least) that the second paragraph would not have cutouts for the characters. (Unticking the "Simulate overprint" option in Acrobat has no apparent effect on anything.)
Any ideas how I might get this to work?
Update
It looks this is a clash with TikZ. Compiling the same document without loading TikZ, (almost) everything works as I expect. Without TikZ, I get overprinting (but I can't seem to turn overprinting off with \overprintstate{0} -- I'll do some more experimenting, perhaps this only works on a page by page basis).
My original document is very complex and relies heavily on TikZ, so ideally I would like for this to work even with TikZ.


pgf/tikzis based on a "static" model (the/ColorSpaceis the same for all pages), while withcolorspaceeach page can have its own/ColorSpace. – Javier Bezos Mar 24 '19 at 10:00/ExtGState. – Javier Bezos Mar 24 '19 at 10:32