Re: Rotated Text
Chris Hobbs <[email protected]>
| Newsgroups | gmane.comp.python.reportlab.user |
|---|---|
| Message-ID | <CAAHPBxzFtsXE-R_iv+WS8teyK6NyQ+=GwsVpn_JA7+zj4+6rSw@mail.gmail.com> |
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 <[email protected]> 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 > >