title: Django pdf: page layout with long texts using pisa
body: <p>I use pisa to generate some PDF files of the following layout:</p>
  
  <pre><code>  @page {
          size: a4;
          @frame header {
            top: 5.4cm;
            bottom: 4cm;
            left: 1.2cm;
            right: 1.2cm;
          }
          @frame main {
            top: 10.5cm;
            bottom: 4cm;
            left: 1.2cm;
            right: 1.2cm;
          }
          @frame footer {
            top: 26cm;
            left: 1.2cm;
            right: 1.2cm;
          }
        }
  </code></pre>
  
  <p>Sometimes the content of the main frame is not short enough to fit in a single page and so it uses the space of the footer frame as well. Instead of that, I would like to have the rest of the text in the main's frame space of the second page (and keep the space of the rest frames clear). Any suggestions?</p>