[reportlab-users] page format
Tim Roberts
timr at probo.com
Fri Nov 3 13:51:52 EST 2006
Andy Robinson wrote:
> Thomas Heidmann wrote:
>> hello,
>> i have a small problem, maybe someone can help me. how can i define
>> the format of a site?
>> i have to use a4 as landscape. so i have to rotate my a4 site 90
>> degress.
>> is there someone that can tell me how i can do this?
>>
> You can create a 'wide but tall' page.
>
> c = Canvas(pagesize='landscape.pdf', pagesize=(842,595))
A nicely readable way to do that is:
from reportlab.lib.pagesizes import A4, portrait, landscape
...
c = Canvas( 'landscape.pdf', pagesize=landscape(A4) )
--
Tim Roberts, timr at probo.com
Providenza & Boekelheide, Inc.
More information about the reportlab-users
mailing list