Hi, in addition to what Luis said: SVG should support CMYK through icc-color property (see [1]), but I don't know if Batik does handle this feature.
Note that fox:cmyk() is a FOP extension, and it is recommended to use the standard FO function rgb-icc() (see [2]). [1] http://www.w3.org/TR/SVGColor12/#icccolor [2] http://xmlgraphics.apache.org/fop/trunk/extensions.html#color-function-cmyk 2012/10/16 Luis Bernardo <lmpmberna...@gmail.com>: > > Someone may correct me if I get this wrong, but I think the issue is that > you are using cmyk() inside SVG, not FO. > > The error you get is thrown by Batik, not really FOP. I think the > documentation needs to be clearer about this. > > You can check that by adding a background-color="cmyk(1, 0, 0, 0)" to the > block element that contains the SVG, FOP will handle the background-color as > advertised. > > > On 10/15/12 3:10 PM, Jawed Islam wrote: >> >> Hello, >> >> I have an SVG which has many colors definitions in it & I enclosed it >> in an FO <fo:instream-foreign-object></fo:instream-foreign-object> tag >> to convert it into an FO file. To convert it into a CMYK PDF I >> converted all the colors of the SVG to their respective CMYK codes >> like cmyk(0,0,20%,40%) as explained in the Apache FO documentation >> >> (http://xmlgraphics.apache.org/fop/trunk/extensions.html#color-function-cmyk) >> but that does not seem to work, every time I execute the command "fop >> input_file.fo output_file.pdf" I get an error >> >> The attribute "fill" represents an invalid CSS value >> ("cmyk(0%,0%,20%,40%)"). >> >> As it is clearly mentioned that the cmyk() function is supported by >> Apache FOP I find it hard to believe that it would not work, I am >> surely missing some tricks here & this is what I am looking for. BTW >> the version I am using of FOP is 1.1 on Windows XP. >> >> Thanks, >> Jawed Islam -- pascal --------------------------------------------------------------------- To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org