[reportlab-users] Bulleted list
jim at qlf.com
Tue Apr 13 16:31:46 EDT 2010
Sorry, I noticed a typo below, style.bulletIndex should be
style.bulletIndent. I have fixed this and tested, but had no further luck.
On 4/13/2010 1:51 PM, Jim Steil wrote:
> 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.
> reportlab-users mailing list
> reportlab-users at lists2.reportlab.com
VP of Information Technology
Quality Liquid Feeds, Inc.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the reportlab-users