[reportlab-users] Illegal operation 'ET' outside text object.
Andy Robinson
reportlab-users@reportlab.com
Fri, 22 Aug 2003 08:49:37 +0100
> I've just made some test : it looks like text objects do not like
> to be drawn
> twice (canvas.drawText)
>
That explains it. Test operations in PDF must be enclosed
between 'BT' and 'ET' operators, and text objects are a convenience
to save users or the canvas from a lot of 'mode switching'
on every drawing operation; they are NOT supposed to be
kept hanging around, used in parallel or re-uses. We should add an
assertion to catch misuse of the text object.
- Andy