[xep-support] XEP, SVG and CMYK color

From: Timothy Morin <morin.timothy+xepsupport@gmail.com>
Date: Tue Jun 27 2006 - 09:00:57 PDT

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>

-------------------
(*) To unsubscribe, send a message with words 'unsubscribe xep-support'
in the body of the message to majordomo@renderx.com from the address
you are subscribed from.
(*) By using the Service, you expressly agree to these Terms of Service http://www.renderx.com/terms-of-service.html
Received on Tue Jun 27 09:43:35 2006

This archive was generated by hypermail 2.1.8 : Tue Jun 27 2006 - 09:43:38 PDT