title: How can I push the footer to the next page if the content overlaps it in mpdf?
body: <p>Technicaly, I know how to set the html footer in mpdf, but I have an issue that I can't get around with.</p>
  <p>I am generating an invoice. The invoice have an items table which can vary in the number of items. In the last page(ie. after the items table) of the invoice I am setting a page-footer whith the company consent and a signature field. So that the block containing these two goes at the end of the current page(about 70mm in height). It does'nt nesessarily need to be a footer; a fixed block also works(but the same issue applies).</p>
  <p><strong>The Issue</strong></p>
  <p>When the list items is relatievly small it works perfectly well as expected; Also, when the list items is more. But, when the list item is in a range the content overlaps.</p>
  <p><em><strong>Currently I have tried:</strong></em></p>
  <p><strong>Option 1</strong>
  Set the block using a fixed position at the bottom.<br>
  Issue: The same.</p>
  <p><strong>Option 2</strong>
  Increase the margin-bottom to 70mm.<br>
  Issue: The overlapping is fixed, however when the content is more and needs to have two or more pages worth of items - it leaves so much(70mm) of blank spaces in the previous pages.</p>
  <p><strong>Option 3</strong>
  Set the <code>setAutoBottomMargin</code> to <code>stretch</code><br>
  Issue: The same. (Can't feel any difference)</p>
  <p><strong>Option 4</strong>
  Set a named page reserved for the last page.<br>
  Issue: The named page is not working on the first page. ie. It always have a second page. So even when the content is small it takes atleast two pages.</p>
  <p><strong>What I expect it to behave like</strong></p>
  <ul>
  <li>when the content is small. Push this block to the end of the current page.</li>
  <li>when the content is in the range fill up the available spaces. and push this block to the next page.</li>
  </ul>
  <p><strong>Note</strong>: I am using <code>&lt;sethtmlpagefooter&gt;</code> as the last tag to set the footer for the page at runtime.</p>
  <p>Can anybody help me?</p>
  <p>If you require any image samples of the current outputs I can provide them. But I think this is a pretty common requirement and somebody would already have figured this out.</p>
  <p>If my explaination is off. Please let me know, I can provide more info if needed.</p>
  <p>Thank you</p>