Thank you Thomas,

Is it possible to use some script to set the background color? I sew some
message mentioned about getBBox() and then set color on the SVGRect
object. But I am not sure if it is feasible.

Can you also give some more detailed informatin about how to use the
"preformatted" attribute? Can I just use <flowLine preformatted="true"/>?
I can not find any document on Batik extensions except W3C SVG 1.2 spec.

Your help is greatly appreciated.

Jay


On Tue, 2 Sep 2003, Thomas DeWeese wrote:

> 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: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to