[reportlab-users] Newbie Question on Landscape Tables...

Tim Roberts timr at probo.com
Mon Jan 23 16:22:21 EST 2012

Jared Carlson wrote:


> So I'm working with report lab and for the most part getting things to

> work well, but landscape with a table is killing me.


> So I create a couple of frames and define a _landscape function, which

> just rotates the canvas... I should add that "BuildTable( ... )"

> builds a table...

Do you need to change orientation in the middle? If you want your
entire document in landscape, you do that when you create the canvas:

from reportlab.lib.pagesizes import LETTER, landscape
canv = canvas.Canvas( 'MyFile.pdf', pagesize=landscape(LETTER) )

Tim Roberts, timr at probo.com
Providenza & Boekelheide, Inc.

More information about the reportlab-users mailing list