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 ? 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
inside into pdf. Because fop > > does not support it, I have to convert the HTML
'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 > > to . 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(
'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: > For additional commands, e-mail: > > > --------------------------------------------------------------------- To unsubscribe, e-mail: For additional commands, e-mail: