[reportlab-users] page format
Andy Robinson
andy at reportlab.com
Fri Nov 3 05:38:21 EST 2006
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))
Technically PDF supports 'rotation' as well but I don't think we have
exposed it. Acrobat Reader is smart enough to display 'rotated A4
portrait' and 'A4 landscape' the same way on screen so users and
printers cannot tell the difference.
Best Regards,
Andy Robinson
More information about the reportlab-users
mailing list