summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Cherepanov <alex.cherepanov@artifex.com>2012-05-05 01:03:31 -0400
committerAlex Cherepanov <alex.cherepanov@artifex.com>2012-05-05 01:03:31 -0400
commit922400e9056ad46a27e0ab5964213415061bd801 (patch)
tree5ef6eeb5a6d3e85163c89b7a8bd3bfd5df791d65
parentb2b2473f2064b4abd835449b761e46fdbb5a47f1 (diff)
Bug 693027: Add missing spot color extraction from shading patterns.
Old code processed all patterns as tiled patterns and missed the shading color space.
-rw-r--r--gs/Resource/Init/pdf_main.ps9
1 files changed, 8 insertions, 1 deletions
diff --git a/gs/Resource/Init/pdf_main.ps b/gs/Resource/Init/pdf_main.ps
index 46fc0fa91..3c83a63b0 100644
--- a/gs/Resource/Init/pdf_main.ps
+++ b/gs/Resource/Init/pdf_main.ps
@@ -2118,7 +2118,14 @@ currentdict /PDF2PS_matrix_key undef
{ { exch pop oforce 3 index colorspacespotcolors } forall } big-res-forall
} if
dup /Pattern knownoget {
- { { exch pop oforce 4 copy exch pop resourcespotcolors pop pop pop } forall } big-res-forall
+ { { exch pop oforce
+ dup /Shading knownoget {
+ exch pop
+ /ColorSpace oget 3 index colorspacespotcolors
+ } {
+ 4 copy exch pop resourcespotcolors pop pop pop
+ } ifelse
+ } forall } big-res-forall
} if
dup /Shading knownoget {
{ { exch pop oforce /ColorSpace oget 3 index colorspacespotcolors } forall } big-res-forall