title: dompdf a way to remove the footer on the last page?
body: <p>Using DOMPDF 0.6.0 beta 3, I try to build a pdf with a variable number of text pages followed by a last page that is filled with clients logos. 
  I want to have a image in the footer on all the pages except the last one. </p>
  
  <p>I use this for now, and it adds the footer on all the pages including the last one: </p>
  
  <pre><code>  $footer = $pdf-&gt;open_object();
  
    $w = $pdf-&gt;get_width();
    $h = $pdf-&gt;get_height();
  
    $y = $h - 2 * $text_height - 24;
  
    $img_w = 590; 
    $img_h = 170; 
    $pdf-&gt;image("footer-pdf.png", ($w - $img_w) / 2.0, $y - $img_h, $img_w, $img_h);
  
    $pdf-&gt;close_object();
  
    $pdf-&gt;add_object($footer, "all");
  </code></pre>
  
  <p>add_object() can receive the (all, add, odd, even) parameters but i can't see something that can control the last page. </p>
  
  <p>I tried using the $PAGE_NUM and $PAGE_COUNT to check if they are equal it means i am on the last page and do some stuff there. But both $PAGE_NUM and $PAGE_COUNT return 1 everytime. </p>
  
  <p>Any idea on how to remove the footer on the last page? </p>
  
  <p>Thank you. </p>