Forum Bugs

Spot Color in SVG gradient don't work

vanja
Hi,

Spot color (https://www.princexml.com/doc-prince/#color-spot) is not working in SVG Gradient, test file is attached

Reproduce steps:
1. SVG file:


2. White and Blue color values are replaced with spot colors according to docs (see attached file "design_Front_dproof5p.svg")

3. Convert attached file with Prince 12.2

Expected Results:
PDF looks same as SVG file - http://img.newtonideas.com/adt29cptrue3yne82feh98rh1.png

Actual Result:
Gradient is solid Black - see attached file "design_Front_dproof5p.pdf"


More info:
1. SVG code:
<linearGradient id="SVGID_1_" ... >
	<stop  offset="0" style="stop-color:prince-color(White)"/>
	<stop  offset="1" style="stop-color:prince-color(Blue)"/>
</linearGradient>
<rect fill="url(#SVGID_1_)" ... />

is not converted,
while
<rect fill="prince-color(White)" ... />
<rect fill="prince-color(Blue)" ... />

works OK

2. Spot Colors CSS is embed into attached SVG
  1. design_Front_dproof5p.pdf5.7 kB
    SVG Gradient issue - converted to PDF
  2. design_Front_dproof5p.svg1.2 kB
    SVG Gradient Issue
mikeday
We will investigate adding support for spot colors in gradients.
vanja
Hi mikeday,

Thank you for the information.
Do you have any rough estimate for this issue?

Regards,
Ivan
mikeday
We should be able to release an updated build next week.
mikeday
The latest build includes support for named colors in gradients! :D
wangp
Note that if named colors and process colors are used in the same gradient, the named colors will be converted to their alternate colors.