diff options
author | Ken Sharp <ken.sharp@artifex.com> | 2018-12-14 10:38:19 +0000 |
---|---|---|
committer | Ken Sharp <ken.sharp@artifex.com> | 2018-12-14 10:38:19 +0000 |
commit | 9d23c4d9a6c02416341992d8b29226273df07af8 (patch) | |
tree | 79cebffa606828575d1359bf202bf551f0e8d456 /psi/icstate.h | |
parent | c7b69c7799c32ec3e895f2053bb6c4a5e2ceb340 (diff) | |
download | ghostpdl-9d23c4d9a6c02416341992d8b29226273df07af8.tar.gz |
PDF interpreter - preserve stroke colour/space round SMask
Bug #699179 " Chart lines rendered as black when converting from pdf to png or jpg"
Michael ran the problem down to the fact that the stroke colour space
is set before an ExtGState with a Group which has an SMask. The colour
space before the SMask is an ICCBased space and afterwards it is
DeviceGray.
The SMask itself has a Group and that group is defined by a Form XObject
which has (yet another) Group. This Group is defined as having a
DeviceGray space. The problem is that when we executed a SMask in the
interpreter, we saved the fill colour space and values and restored
them at the end (we can't simply use gsave/grestore), but we did not
preserve the stroke colour space and colourants.
This commit saves that as well. This results in a progression with
pdfwrite with one file and three other files showing subtle progressions
with all devices (586_-_missing_images_gs_SMask_not_applied.pdf,
fireworks_with_radial_shading.pdf, x_-_recursive_xobjects_cause_crash.pdf)
Diffstat (limited to 'psi/icstate.h')
0 files changed, 0 insertions, 0 deletions