[reportlab-users] Rotated paragraph/document with ReportLab (vertical text)
Robin Becker
robin at reportlab.com
Tue Nov 6 11:46:57 EST 2012
On 06/11/2012 15:47, Jesus Sanchez-Palencia wrote:
> Hi! Thanks for answering!
>
> On Tue, Nov 6, 2012 at 12:19 PM, Robin Becker <robin at reportlab.com> wrote:
>> rotations will not normally affect the page size so if you want a page
>> that's 80 x 250 you should specify that. Again if you don't want to rotate
>> the text why use the extended class (even if the rotation has been removed).
>> Rotations work around an origin, in our case that's the bottom left hand
>> corner of the page x=0 y=0.
>
> I DO want to rotate the text. I was just saying that the output I want
> is exactly what that code is doing, but rotated by 90 degrees counter
> clockwise.
>
> About the rotation, so if I first translate the origin to the center
> of the document (point (40, 125) for a 80x250 document, right?) and
> then rotate(90) it should do what I am expecting, right?
.......
If you do that you then have a document centred at that position. After the
rotate it's still centred there so you may need to translate back to the origin
that you want the rest of the document handling to respect.
--
Robin Becker
More information about the reportlab-users
mailing list