[reportlab-users] Filling a frame from the bottom ? (Platypus)

Andy Robinson andy at reportlab.com
Fri Aug 15 02:34:12 EDT 2008


2008/8/15 <reportlab at richardshea.fastmail.fm>:

> Hi - I would like to fill a frame from the bottom upwards (so that if

> there is one line of text it's at the bottom of the page and if there

> are, say, 15 the last line of text is at the bottom of the page and the

> first line is, say, 25% of the way up from the bottom.

>

> Is this possible ? I thought at first of a one cell table with VALIGN

> set to BOTTOM but then you've got to persuade the table to position

> itself at the bottom of the frame ... or occupy all of the frame ...

> which as far as I can see is not possible ?


There is no really elegant way to do it. But with a table, you can specify
the rowheights, so you can force your one-cell table to be the height of
the frame. This should do the job as long as you can ensure the table
is the only thing in the frame.

- Andy


More information about the reportlab-users mailing list