[reportlab-users] Changeing page orientation of canvas.

Jerome Alet reportlab-users@reportlab.com
Fri, 1 Nov 2002 23:16:29 +0100


On Fri, Nov 01, 2002 at 04:57:53PM -0500, Ian Sparks wrote:
> Hmm..I tried to do :
> 
> c = canvas.Canvas("hello.pdf",pagesize=letter)
> 
> c.drawString(0.3*inch,0.3*inch,'Hello world')
> c.showPage()
> 
> c.pageSize = 200,200 #Change that page size
> c.drawString(0.3*inch,0.3*inch,'Hello world')
> c.showPage()
> c.save()
> 
> this runs but my second page is still letter size. What did I miss?

an underscore ???

that's c._pagesize as reported by the pdfgen/canvas.py file in 
the __init__ method

not sure if this is present in the documentation

hth

Jerome Alet