diff options
author | Ken Sharp <ken.sharp@artifex.com> | 2013-07-24 13:35:45 +0100 |
---|---|---|
committer | Ken Sharp <ken.sharp@artifex.com> | 2013-07-24 13:35:45 +0100 |
commit | 25a2563e775d849c17885305a4e459a328c2761b (patch) | |
tree | 4cdc4621db2d5b8f05848cb033b0ccb7a1433e5f | |
parent | a8384d57fad56058d494616ba196401542a540bc (diff) | |
download | ghostpdl-25a2563e775d849c17885305a4e459a328c2761b.tar.gz |
pdfwrite - new colour code, handle 'RGB' same as sRGB for allowed spaces
We were trying to write Shading dictionaries with invalid colour spaces,
this way we degenerate to rectangles which is ugly but works.
-rw-r--r-- | gs/devices/vector/gdevpdfg.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gs/devices/vector/gdevpdfg.c b/gs/devices/vector/gdevpdfg.c index d7a9bc740..8bc10e370 100644 --- a/gs/devices/vector/gdevpdfg.c +++ b/gs/devices/vector/gdevpdfg.c @@ -289,6 +289,10 @@ is_cspace_allowed_in_strategy(gx_device_pdf * pdev, gs_color_space_index csi) csi != gs_color_space_index_DeviceRGB && csi != gs_color_space_index_DeviceGray) return false; + if (pdev->params.ColorConversionStrategy == ccs_RGB && + csi != gs_color_space_index_DeviceRGB && + csi != gs_color_space_index_DeviceGray) + return false; if (pdev->params.ColorConversionStrategy == ccs_Gray && csi != gs_color_space_index_DeviceGray) return false; |