[reportlab-users] How to rotate a text object

Jerome Alet reportlab-users@reportlab.com
Fri, 24 May 2002 12:05:02 +0200


On Fri, May 24, 2002 at 11:53:07AM +0200, Rüdiger Mähl wrote:
> I would like to write a text rotated by 90 degrees. 
> 
> I found in the user guide, that one can apply a 
> textobject.setTextTransform(a,b,c,d,e,f).

why don't you do something like :

	canv.saveState()
	canv.rotate(90)
	canv.drawText(yourtextobject)
	canv.restoreState()

?

hth.

Jerome Alet