[xep-support] XEP, SVG and CMYK color
Timothy Morin
morin.timothy+xepsupport at gmail.com
Tue Jun 27 09:00:57 PDT 2006
Hello,
I'm evaluating XEP for use in a project which involves converting SVG images
into PDF format.
While testing XEP, I've noticed an odd behavior. For our purposes, we need
to be able to specify CMYK colors when generating PDFs from SVG files. My
understanding is that an "icc-color," if specified, is supposed to take
precedence with "red" or "#990000" then being treated as a fallback. I get
the expected output when fill, for example, is set to "red icc-color(#CMYK,
0%,0%,0%,10%)," but not when fill is set to "#990000 icc-color(#CMYK,
0%,0%,0%,10%)" in the SVG. Does anyone have any idea why I'm seeing this
behavior?
I've inlined an example .fo file.
Regards,
Tim
http://www.w3.org/TR/SVG11/painting.html#SpecifyingPaint
Using XEP 4.6 build 20060515
*********************************************************************
<?xml version="1.0" encoding="UTF-8"?>
<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns="
http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" >
<fo:layout-master-set>
<fo:simple-page-master margin-right="0in" margin-left="0in"
margin-bottom="0in" margin-top="0in" page-width="5in" page-height="3in"
master-name="simplecard">
<fo:region-body/>
</fo:simple-page-master>
</fo:layout-master-set>
<fo:page-sequence master-reference="simplecard">
<fo:flow flow-name="xsl-region-body">
<fo:block margin-left="0in" line-height="0in">
<fo:instream-foreign-object>
<svg width="5in" height="3in" version="1.1">
<!-- Both rectangles should display as GRAY icc-color(#CMYK, 0%,0%,0%,10%)
(I think)-->
<!-- Displays as gray -->
<rect x="1in" width="1in" height="1in" fill="red icc-color(#CMYK,
0%,0%,0%,10%)"/>
<!-- Displays as red -->
<rect x="3in" width="1in" height="1in" fill="#990000 icc-color(#CMYK,
0%,0%,0%,10%)"/>
</svg>
</fo:instream-foreign-object>
</fo:block>
</fo:flow>
</fo:page-sequence>
</fo:root>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.renderx.com/pipermail/xep-support/attachments/20060627/24a12779/attachment.html>
More information about the Xep-support
mailing list