[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?


When I put

textobject = pg.endText()

immediately following the line


I see the following python error:

Traceback (most recent call last):
File "learnRL.py", line 96, in ?
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?



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