[reportlab-users] Position Paragraph or how to get current position
Mike Driscoll
mike at pythonlibrary.org
Mon Oct 21 13:29:48 EDT 2013
Hi Robin,
On Mon, Oct 21, 2013 at 11:34 AM, Robin Becker <robin at reportlab.com> 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://two.pairlist.net/pipermail/reportlab-users/attachments/20131021/66812ec9/attachment.html>
More information about the reportlab-users
mailing list