xmlgraphics-batik-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Thomas DeWeese <Thomas.DeWe...@Kodak.com>
Subject Re: [Q] text background color and multiple line breaks
Date Tue, 02 Sep 2003 11:48:29 GMT
Hi Jihai,

Jihai Qiu wrote:

> I need to implement the HTML <div> inside <table> into pdf. Because fop
> does not support it, I have to convert the HTML <div>'s with absolute
> position into SVG as the frist step.
> I encountered two problems and would like to ask you.
> The first is about the text background color, especially when converting
> <html::span> to <svg:flowLine>. I am unable to set background color.
> Is there any workaround? Can I use script to set it?

   There is no background for SVG text.  You can create an svg rectangle that
covers the background area for the text (this would be hard for spans :).

> The second is for the multiple line breaks(<br>'s). The SVG V1.2 spec
> mentions that "if there are no printing characters between the end of
> multiple flowline elements the second and greater flowLine elements have
> no effect as the current line does not contain any text when they are
> processed". Is there any simple way to implement multiple line breaks.

   You might try using the 'preformatted' attribute.

To unsubscribe, e-mail: batik-users-unsubscribe@xml.apache.org
For additional commands, e-mail: batik-users-help@xml.apache.org

View raw message