| 1 |
%% |
| 2 |
%% Idioms for the PPI Media GmbH PPI_ColorUtils ProcSet |
| 3 |
%% This appears to be a kind of desktop colour separation utility. If it is |
| 4 |
%% used with the pdfwrite PassThroughJPEGImages feature then instead of |
| 5 |
%% converting images from colour to gray, we embed the colour image data |
| 6 |
%% but with a DeviceGray colour space, which leads to incorrect output. |
| 7 |
%% To fix that, turn off the feature if cuForceGray is set to true. This |
| 8 |
%% is the first time we've seen this, and more work may be required. |
| 9 |
%% |
| 10 |
|
| 11 |
currentuserparams /IdiomRecognition get |
| 12 |
<</IdiomRecognition false>> setuserparams |
| 13 |
|
| 14 |
/PPI_CUtils |
| 15 |
<< |
| 16 |
/cuForceGray [ |
| 17 |
{/_cuForceGray exch cuPut} bind |
| 18 |
{dup //true eq {currentdevice //null //false mark /PassThroughJPEGImages //false .putdeviceparamsonly}if pop pop /_cuForceGray exch cuPut} bind |
| 19 |
] |
| 20 |
>> |
| 21 |
|
| 22 |
/IdiomSet defineresource pop |
| 23 |
|
| 24 |
<</IdiomRecognition 3 -1 roll>> setuserparams |