[reportlab-users] UTF8 Encoded Strings

Rich Shepard rshepard at appl-ecosys.com
Wed Oct 31 13:30:42 EDT 2007


On Wed, 31 Oct 2007, Robin Becker wrote:


> I'm getting an illegal operation opening that pdf 'Td outside textobject.

> Did you forget to close the textobject?


Robin,

When I put

textobject = pg.endText()

immediately following the line

pg.drawText(textobject

I see the following python error:

Traceback (most recent call last):
File "learnRL.py", line 96, in ?
econRun()
File "learnRL.py", line 88, in econRun
textobject = pg.endText()
AttributeError: Canvas instance has no attribute 'endText'

so I must have improper syntax. How do I close the textobject, and where in
the code should it be placed?

Thanks,

Rich

--
Richard B. Shepard, Ph.D. | The Environmental Permitting
Applied Ecosystem Services, Inc. | Accelerators(TM)
<http://www.appl-ecosys.com> Voice: 503-667-4517 Fax: 503-667-8863


More information about the reportlab-users mailing list