[reportlab-users] flowables.KeepTogether.split() adding unnecessary FrameBreak

Roberto Alsina ralsina at netmanagers.com.ar
Mon Feb 22 08:08:45 EST 2010


On Monday 22 February 2010 09:54:53 Robin Becker wrote:

> I think what's happening here is that the keepWithNext is creating a

> combined flowable which is larger than the entire page or frame in height

> ie KeepTogether([heading,Table([....])]). Effectively that forces the

> frame add to cause an attempt to split on the next page. Unfortunately I

> don't think our current methodology has enough information to make a

> decent decision. A better way to keep a heading with another flowable is

> to use some kind of conditional page throw


I have this problem in several places in rstpdf, but I don't know anything
about conditional page throws... could you point me in the right direction?
Maybe some code I can copy that does more or less the same as that
keeptogether?


More information about the reportlab-users mailing list