[reportlab-users] How to mix static positioning and flowables
robin at reportlab.com
Mon Aug 19 05:39:17 EDT 2013
flowables determine their height width etc etc in the wrap function and then a
framelike object is supposed to position the flowable in a top down fashion.
That means we have to adjust the y location based on the height of the flowable
see reportlab/platypus/frames.py near line 166
y -= h
effectively moves the draw location down the frame by the required height.
Our coordinates are standard y increases upwards, but page layout is like TV.
On 08/08/2013 20:29, Mike Driscoll wrote:
> I have been experimenting using the table and I notice that when I use
> table.drawOn(), it changes position depending on how many rows of data I
> pass the table. Why won't the table start at the position I'm passing it
> every single time?
> Right now, my plan is to find out how many rows of data I can fit on the
> bottom half of the page and then add a check that says, if number of rows
> is greater than X, only pass X rows of data to the table and save the
> following rows into a new list. Then I'll add a page break, create a new
> table and pass it the new list. However since the table refuses to actually
> stay where I tell it, I'm not sure I can even use a table object at this
> point. Any suggestions?
> - Mike
More information about the reportlab-users