[reportlab-users] AttributeError: XPreformatted instance has no attribute 'blPara'

Robin Becker robin at reportlab.com
Wed Jan 4 05:00:49 EST 2012

Great, at least not a bug. Even though the XPreformatted doesn't really need to
determine its width the framework always calls wrap before drawing the flowables
so probably that's why.

On 03/01/2012 18:31, Michael Hipp wrote:



>> ch = XPreformatted(hdr, self.style)

>> w,h = ch.wrap(aW,aH)

>> ch.drawOn(canvas, 0.75*inch, ph-1.00*inch)


> You are correct, thanks. Calling wrap() before drawOn() avoids the error.


> Michael

Robin Becker

More information about the reportlab-users mailing list