summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Resource/IdiomSet/PPI_CUtils24
1 files changed, 24 insertions, 0 deletions
diff --git a/Resource/IdiomSet/PPI_CUtils b/Resource/IdiomSet/PPI_CUtils
new file mode 100644
index 000000000..7e6ecb23e
--- /dev/null
+++ b/Resource/IdiomSet/PPI_CUtils
@@ -0,0 +1,24 @@
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
11currentuserparams /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 /_cuForceGray exch cuPut} bind
19]
20>>
21
22/IdiomSet defineresource pop
23
24<</IdiomRecognition 3 -1 roll>> setuserparams