File: PPI_CUtils

package info (click to toggle)
ghostscript 10.06.0~dfsg-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 96,296 kB
  • sloc: ansic: 944,438; python: 7,917; cpp: 6,534; cs: 6,457; sh: 6,168; java: 4,028; perl: 2,373; tcl: 1,639; makefile: 538; awk: 66; yacc: 18
file content (24 lines) | stat: -rw-r--r-- 869 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
%%
%% Idioms for the PPI Media GmbH PPI_ColorUtils ProcSet
%% This appears to be a kind of desktop colour separation utility. If it is
%% used with the pdfwrite PassThroughJPEGImages feature then instead of
%% converting images from colour to gray, we embed the colour image data
%% but with a DeviceGray colour space, which leads to incorrect output.
%% To fix that, turn off the feature if cuForceGray is set to true. This
%% is the first time we've seen this, and more work may be required.
%%

currentuserparams /IdiomRecognition get
<</IdiomRecognition false>> setuserparams

/PPI_CUtils
<<
/cuForceGray [
{/_cuForceGray exch cuPut} bind
{dup //true eq {currentdevice //null //false mark /PassThroughJPEGImages //false .putdeviceparamsonly}if pop pop /_cuForceGray exch cuPut} bind
]
>>

/IdiomSet defineresource pop

<</IdiomRecognition 3 -1 roll>> setuserparams