[reportlab-users] Position Paragraph or how to get current position
Mike Driscoll
mike at pythonlibrary.org
Mon Oct 21 09:59:31 EDT 2013
Hi Andy,
On Fri, Oct 18, 2013 at 2:27 PM, Andy Robinson <andy at reportlab.com> wrote:
> Mike, on the table: you can draw any flowable in canvas mode if you first
> call
> object.wrap(availWidth, availHeight), which will return the width
> and height within that space that it actually wants to use.
> Practically, width was never used and is always the width of the
> frame, but height tells you where your table will end.
>
>
> This height will be to the bottom of the table. We define the edges
> as a zero-width line at the midpoint of the bottom border. However,
> by default all table cells have 3 points of padding between the
> content and edges (overrideable by you) on the inside; there is no
> padding around the inside. So to put a paragraph straight after,
> you'll want to set its baseline a bit lower.
>
> This is going from memory as I don't have a development environment to
> hand. Hope it helps...
I think I got the padding removed using the table's style options,
specifically BOTTOMPADDING and TOPPADDING. But I'm still not sure how I can
control the indent of the following flowables. I really want to move the
Paragraph object that follows the table to the left about half an inch.
- Mike
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://two.pairlist.net/pipermail/reportlab-users/attachments/20131021/2ad74aae/attachment.htm>
More information about the reportlab-users
mailing list