[reportlab-users] Position Paragraph or how to get current position
mike at pythonlibrary.org
Mon Oct 21 13:29:48 EDT 2013
On Mon, Oct 21, 2013 at 11:34 AM, Robin Becker <robin at reportlab.com> wrote:
> 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
> 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.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the reportlab-users