[reportlab-users] Filling a frame from the bottom ? (Platypus)
    reportlab at richardshea.fastmail.fm 
    reportlab at richardshea.fastmail.fm
       
    Fri Aug 15 06:56:36 EDT 2008
    
    
  
On Fri, 15 Aug 2008 07:34:12 +0100, "Andy Robinson" <andy at reportlab.com>
said:
> 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.
> 
That's a great idea, thanks. I had overlooked the Table constructor
argument which allows you to set rowheights that will do just fine for
me.
thanks again
Richard.
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
The Cuba Group
PO Box 1864
Wellington
New Zealand
PH +64 4 496 5205
MO +64 21 296 6839 
FX +64 4 496 5209
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    
    
More information about the reportlab-users
mailing list