Re: Position Paragraph or how to get current position
Mike Driscoll <[email protected]>
| Newsgroups | gmane.comp.python.reportlab.user |
|---|---|
| Message-ID | <CAO4gEAv9Svai5U0ERK7+7CQ0aw9r5H9=GJxZkXWxRHyrOE59vQ@mail.gmail.com> |
Hi Robin, On Mon, Oct 21, 2013 at 11:34 AM, Robin Becker <[email protected]> wrote: > ........ > > Mike, > > our paragraphs try to use all the horizontal space available to them. That > means the container doesn't control where the paragraph aligns itself. > That's a problem if you want ragged right and aligned right as I don't > think we can do that. > > > For traditional left/right center etc (and ignoring any cell padding > issues) you need to set the paragraph's style.alignment to one of > > TA_LEFT, TA_RIGHT, TA_CENTER, TA_JUSTIFY (found in from > reportlab.lib.enums) > > to get the desired behaviour. The default is TA_LEFT. > -- > Robin Becker > > __ > I actually figured out a way to accomplish what I wanted. I just created a custom ParagraphStyle and set the leftIndent parameter to -50, which made it line up where I needed it. Thanks for your advice though. ------------------- Mike Driscoll Blog: http://blog.pythonlibrary.org