Re: [xep-support] XEP, SVG and CMYK color

From: Martin Snajdr|AMAN <martin.snajdr@aman.de>
Date: Tue Jun 27 2006 - 09:26:48 PDT

Hi there,

in my opinion colors have to set in svg in the following way:

<svg:rect x="5.084" y="11.645" fill="rgb(227,0,23)
icc-color(#CMYK,0,1,0.8,0.1)" stroke="rgb(255,255,255)
icc-color(#CMYK,0,0,0,0)" stroke-width="0.1984" width="5.34"
height="1.719"/>

for example...

Mit freundlichen Grüßen

Martin Snajdr

-------------------------------------------------------------
take a look @ http://www.fachverlag.bundesanzeiger.de/
-------------------------------------------------------------

-->> mailto:Martin.Snajdr@aman.de

Martin Snajdr
AMAN Media GmbH
network & media
Dorfstrasse 2-4
85235 Unterumbach
Germany
fon: ++49-(0)8134-9100
fax: ++49-(0)8134-9110
technical support:
mailto:admin@aman.de
http://www.aman.de <http://www.aman.de/>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Diese eMail enthält vertrauliche und/oder rechtlich geschützte
Informationen. Das unerlaubte Kopieren sowie die unbefugte
Weitergabe/Weiterleitung dieser Mail ist nicht gestattet. Wenn Sie nicht
der richtige Adressat sind oder diese eMail irrtümlich erhalten haben,
informieren Sie bitte sofort den Absender und vernichten Sie diese Mail.

This e-mail may contain confidential and/or privileged information. Any
unauthorized copying, disclosure or distribution/forwarding of the
material in this email is strictly forbidden.

Timothy Morin schrieb:
> 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
> <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 <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 10:01:06 2006

This archive was generated by hypermail 2.1.8 : Tue Jun 27 2006 - 10:01:07 PDT