[reportlab-users] [Feature-Request]

Dirk Holtwick dirk.holtwick at gmail.com
Wed Oct 22 18:23:57 EDT 2008

Well, I implemented the background feature for Paragraphs. It is based
on the Reportlab 2.1 version because I have to avoid the trouble and
bugs with the non breaking spaces (see older mails).

You can set the background by setting the attribute "backColor" in
ParaFrags. They will respect the font sizes, The speedup functions are
not used, because they needed to be changed an therefore I turned them off.

Here is the code. Hope you find it useful. But I think the Paragraph
module should have a general cleanup and refactoring since the code is
difficult to understand.


Use Pisa/ XHTML2PDF <http://www.xhtml2pdf.com/> to try this feature by
using code like this:

<span style="background:yellow">Yellow Background</span>


Dirk Holtwick schrieb:

> Hi Dinu,


>> My alterparagraphs [1] have "something like that", but it's

>> not yet usable as tags the way you want. Sorry for that. ;-)


> that looks very interesting and your approach to make code more readable

> is great. The original Paragraph code seems to like some cleanup ;)


> The parsing is not needed, since XHTML2PDF is doing all the stuff. My

> idea is to add a functionality to the fragments like the one providing

> "underline". Hope to get some results soon and will keep you informed. I

> just wanted to avoid to make a work twice :)


> Cheers

> Dirk



More information about the reportlab-users mailing list