[reportlab-users] Rotated Text
Chris Hobbs
cwlh at farmhall.ca
Tue Mar 11 19:04:14 EDT 2014
Many thanks. Worked almost like a dream. My problem was with the angle
(which must be in degrees rather than radians).
Thanks again
Chris
On 11 March 2014 17:14, Mike Driscoll <kyosohma at gmail.com> wrote:
>
>
> On Tuesday, March 11, 2014 3:54:24 PM UTC-5, Chris Hobbs wrote:
>>
>> I'm sure that this question has been asked and answered dozens of times
>> but I can find it neither in the FAQs, nor in the mailing lists (is there a
>> search option for the mailing list?).
>>
>> I need to place a line of text on the pdf canvas at a particular angle
>> (say 37 degrees to the horizontal). In the user manual there is a
>> tantalizing mention of
>>
>> textobject.setTextTransform(a,b,c,d,e,f)
>>
>> but no further mention of what a to f are.
>>
>> Any help would be appreciated.
>>
>> Chris Hobbs
>>
>
>
> I found this example a year or so ago and it worked then:
>
> http://www.local-guru.net/blog/2009/4/9/rotated-text-in-reportlabs
>
> The canvas method you are looking for called rotate(). This StackOverflow
> link also has an example:
> https://stackoverflow.com/questions/13061545/rotated-document-with-reportlab-vertical-text
>
> Hope that helps,
> Mike
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://two.pairlist.net/pipermail/reportlab-users/attachments/20140311/6c417be4/attachment.htm>
More information about the reportlab-users
mailing list