[reportlab-users] Bulleted Text not displaying

Peter Mattingly pmattingly at mail.csuchico.edu
Sat Oct 11 22:09:20 EDT 2008


Code:
pdf = SimpleDocTemplate("learn_platypus.pdf",
pagesize = letter,
title="Somebody",
author="Somebody",
showBoundary = 0, #debugging, set to 1
)

body_style = ParagraphStyle(
name = "body_style",
fontSize = 12,
wordWrap = True,#THIS DOES NOT REPORT ERRORS ON BAD INPUTS
#Does this even work?
fontName = "Times-Roman"
)
text = "<bullet>This is bulleted text.</bullet>"
para = Paragraph(text, style=body_style)
story.append(para)

pdf.build(story)

I'd really like to be able to display bulleted text, but ReportLab isn't
cooperating. Other things I've tried that didn't work:

text = "<bullet></bullet>This is bulleted text." #displays no bullet, but
the text works
text = "\xe2\x80\xa2This is bulleted text." #displays a bullet CHARACTER
then the text, not what I'm after
para = Paragraph("", style=body_style, bulletText="This is bulleted text.")
#displays nothing
para = Paragraph("\xe2\x80\xa2", style=body_style, bulletText="This is
bulleted text.") #Bullet character AFTER the bullet text

This is the last thing I need to get working before I can finish my
programming.

Thanks for your help.

<Gripe>Always such a headache to program OSS things, would it kill anyone to
make the documentation complete? =*( </gripe>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://two.pairlist.net/pipermail/reportlab-users/attachments/20081011/fa5fe045/attachment.htm>


More information about the reportlab-users mailing list