[reportlab-users] Bulleted list

Jim Steil 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.

-Jim

On 4/13/2010 1:51 PM, Jim Steil wrote:

> Hi

>

> 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>',

> style)

>

> reportStory.append(bullet2)

>

> My other paragraphs are working fine. Just having trouble with the

> ones with the <bullet> tags in them.

>

> -Jim

>

>

> _______________________________________________

> reportlab-users mailing list

> reportlab-users at lists2.reportlab.com

> http://two.pairlist.net/mailman/listinfo/reportlab-users

>


--
Jim Steil
VP of Information Technology
Quality Liquid Feeds, Inc.
608.935.2345 office
608.341.9896 cell
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://two.pairlist.net/pipermail/reportlab-users/attachments/20100413/9561adc4/attachment.html>


More information about the reportlab-users mailing list