[xep-support] Support of gradient and texture paint in svg

Christian Kriebel christian.kriebel at assentis.com
Thu May 4 04:34:30 PDT 2006


Hello

I need to embed svg graphics containing gradient and texture paint to FO and
render pdf from it.
Today it's not possible to use <linearGradient> or <pattern> elements in svg
?
The pdf shows no color for it. 

Are these types of colors not yet supported by xep ? If so, when do you plan
to do it ?
How can I workaround this ?

I've attached a svg and a pdf (rendered by xep 4.5) wich contains a "normal"
fill attribute, a fill pattern and a fill gradient.

Thanks in advance.

A) a gradient paint is represented in Java for example as:

GradientPaint gp0 = new GradientPaint(0.0f, 0.0f, java.awt.Color.blue, 0.0f,
0.0f, new java.awt.Color(0, 0, 64));


B) a texture paint is represented in Java for example as:
        
BufferedImage bi = new BufferedImage(5, 5, BufferedImage.TYPE_INT_RGB);
Graphics2D big = bi.createGraphics();
big.setColor(java.awt.Color.blue);
big.fillRect(0, 0, 5, 5);
big.setColor(java.awt.Color.lightGray);
big.fillOval(0, 0, 5, 5);
Rectangle r = new Rectangle(0, 0, 5, 5);
TexturePaint tp = new TexturePaint(bi, r);



~~~~~~~~~~~~~~~~~~~~~
Dr. Christian Kriebel - CTO
Assentis Technologies AG
Lettenstr. 7, 6343 Rotkreuz, Switzerland

mailto:christian.kriebel at assentis.com
Mobile: +41-79-233 19 74
Phone : +41-41-790 91 92
~~~~~~~~~~~~~~~~~~~~~  
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fillpattern.svg
Type: image/svg+xml
Size: 18891 bytes
Desc: not available
URL: <http://lists.renderx.com/pipermail/xep-support/attachments/20060504/66983a33/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: svg.pdf
Type: application/pdf
Size: 11364 bytes
Desc: not available
URL: <http://lists.renderx.com/pipermail/xep-support/attachments/20060504/66983a33/attachment.pdf>


More information about the Xep-support mailing list