diff options
author | Ray Johnston <ray.johnston@artifex.com> | 2021-02-18 08:19:45 -0800 |
---|---|---|
committer | Ray Johnston <ray.johnston@artifex.com> | 2021-02-18 09:44:19 -0800 |
commit | a32419cebfe2db81aa5e838b95e5770241a22fb1 (patch) | |
tree | 7ea30fe11f5cf79d2b265e75ded71d2e9b8ef96d /lib | |
parent | 32c912d6d6b12956f69056c0e7f3050c5aabf2d4 (diff) | |
download | ghostpdl-a32419cebfe2db81aa5e838b95e5770241a22fb1.tar.gz |
Add Page Spot color list to output info
Diffstat (limited to 'lib')
-rw-r--r-- | lib/pdf_info.ps | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/lib/pdf_info.ps b/lib/pdf_info.ps index b69a15c34..3ea2454e5 100644 --- a/lib/pdf_info.ps +++ b/lib/pdf_info.ps @@ -249,9 +249,27 @@ cleartomark % discard the dict from --where-- pop ( Page contains Annotations) print } if - pageusestransparency { + dup pageusestransparency { ( Page uses transparency features) print } if + dup pagespotcolors + dup length 0 gt { + (\n Page Spot colors: ) = + << /Black 0 /Cyan 0 /Magenta 0 /Yellow 0 >> exch + { + pop % discard the value + 1 index 1 index known not { % check if colorant is a standard one + ( ) print + (') print =print (') = + } { + pop % ignore this standard colorant + } ifelse + } forall + pop % discard dict of standard colorants + } { + pop + } ifelse + pop % done with pagedict () = flush } { |