C++ GetInksUsedOnSpread on an EPS with setcmykcolor
So let's say you place the following trivial EPS into a blank InDesign document:
%!PS-Adobe 2.0 EPSF-1.2
%%BoundingBox: 0 0 10 10
%%EndComments
%%EndProlog
0 0 1 0 setcmykcolor
0.1 setlinewidth
2 2 newpath moveto
9 9 lineto
stroke
showpage
That creates a yellow diagonal line. Now in C++ you do the following, presuming `spreadRef` is a reference to the spread where the EPS was placed:
Utils<IInkMgrUtils> inkMgr;
UIDList spreadInks = inkMgr->GetInksUsedOnSpread(spreadRef, 0);
`spreadInks` contains four colors - cyan, magenta, yellow and black. I would have expected it to just contain yellow, because that's the only color in the EPS. If you create a process swatch that has 100% yellow and 0 black, magenta, and cyan, and apply it to a page item, then execute that code, `spreadInks` only has yellow. But with the EPS, it gets all four colors.
Any thoughts from anyone on a way to see from InDesign what colors an EPS is actually using?
