[reportlab-users] mixed page orientations
Andy Robinson
reportlab-users@reportlab.com
Thu, 10 Apr 2003 01:08:06 +0100
> I want to create documents containing landscape and portrait oriented
> pages.
> In Acrobat reader I can view it in the correct orientation
> If I print a document containing this mix in full, then I the portrait
> pages get
> turn by 180 degree, so the upside is down.
> How can I avoid that?
>
There is an extra attribute inside PDF at the page level
to control the Rotation. I just added a canvas method
to control this for you; you'll need to get a nightly
build or a CVS copy.
Use a line like this.
myCanvas.setPageRotation(180)
some time before the first page is finished, and
it will be visibly flipped. You can pass in multiples
of 90 degrees.
- Andy Robinson