[reportlab-users] Flowables group or split over pages

Jerome Alet reportlab-users@reportlab.com
Mon, 13 Oct 2003 09:45:53 +0200


On Mon, Oct 13, 2003 at 08:22:03AM +0100, pieter claassen wrote:
> 
> How can I ask my code to:
> 1. Keep titles (paragraph) and tables together and not split them across
> multiple pages?

flowables.KeepTogether is a special flowable which exists especially for this.

e.g. :

        story.append(flowables.KeepTogether([Spacer(0, 20), mytable, mypara])
        
bye,

Jerome Alet

-- 
"A non-free program is a predatory social system that keeps people 
in a state of domination and division, and uses the spoils to 
dominate more." - RMS