[reportlab-users] Text Background

Dinu Gherman gherman at darwin.in-berlin.de
Thu Jun 11 12:54:49 EDT 2009


Joel Wickard:


> I have a line I'm drawing with canvas.line, that I want to place a

> text label in the middle of. If I use a text object, then the line

> and the text sort of co-mingle, I'm looking for the text to sort of

> clip the line out and create a white background / slight left & right

> padding.

>

> Anyone want to give me a starting direction on this? In the past

> using something like illustrator if I was doing this by hand I would

> have just created a white block behind the text as a separate object,

> I'm just checking to see if we have a different options with

> reportlab.


You might also want to check this project of mine, which
I've put on hold for a while, but it does what you want
(if I understand correctly) on a paragraph level (many
samples included):

http://pypi.python.org/pypi/alterparagraphs

Regards,

Dinu

......................................................................
Follow me on Twitter: http://twitter.com/dinugherman



More information about the reportlab-users mailing list