title: HTML to PDF - Get footer only on last page only of the pdf
body: <p>I am printing <code>HTML</code> output from <code>summernote</code> (WYSIWYG editor) to a pdf.</p>
  
  <p>I want footer to be shown only on bottom of the last page.</p>
  
  <p>But that footer should not take any space on other pages. </p>
  
  <p>I mean if there are 10 lines of space on each page and there is 25 lines of content then first 2 pages should have 10 lines of text each and the last page should have 5 lines of text followed by 3 blank lines and the footer in the last 2 lines.</p>
  
  <p>How should I configure mdpf or dompdf to get this output?</p>
  
  <p>I have gone through multiple people asking the same question but no one has received a working solution.</p>