[reportlab-users] Mixing landscape and portrait pages

Graeme Hawker graeme at lutralutra.co.uk
Tue Dec 23 05:20:37 EST 2008


Hi,

I've seen that reportlab can handle landscape page styles for the entire
document:

from reportlab.lib.pagesizes import A4, LETTER, landscape, portrait
doc.pagesize = landscape(A4)
doc.build(Story, onFirstPage=myFirstPage, onLaterPages=myLaterPages)

But is there any way to mix the two page orientations (landscape and
portrait) within a single document? I would like to create a portrait
document with a couple of landscape pages inside for wide tables.

Thanks

Graeme


More information about the reportlab-users mailing list