[reportlab-users] Bulleted list

Jim Steil jim at qlf.com
Tue Apr 13 14:51:05 EDT 2010


I'm having a heck of a time trying to get a bulleted into my PDF. I
want the following:

* This is my test text. After the first line, the rest of the text
should wrap and indent and subsequent lines. Assuming you are
using an HTML-enabled reader, this should be a good example.
* This is my second bulleted point.

I've tried setting the bulletFontName, bulletFontSize and bulletIndent
in the style applied to my paragraph, but I'm obviously missing
something important. Instead of it not working, it is all just blank.
It doesn't print anything.

In my paragraph text, I'm using the <bullet> and </bullet> tags to show
that it should be bulleted. Here is a sample of what I'm doing:

styles = getSampleStyleSheet()
style = styles['Normal']
style.fontName = 'Arial'
style.fontSize = 12
style.leading = 16
style.bulletFontName = 'Arial'
style.bulletFontSize = 12
style.bulletIndex = 25

bullet2 = Paragraph('<bullet><b>Have an expiration date '
'specific to the additive.</b> This '
'information is supplied by the product
tag '
'or additive addendum tag. To comply with '
'FDA guidelines, the supplement must be
fed '
'before the expiration date.</bullet>',


My other paragraphs are working fine. Just having trouble with the ones
with the <bullet> tags in them.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://two.pairlist.net/pipermail/reportlab-users/attachments/20100413/2fe7aaa4/attachment.html>

More information about the reportlab-users mailing list