title: How to show DOMPDF footer - Page number and Page count in all pages except last page
body: <p>I am using DOMPDF to generate PDF file. 
  I want footer(Page number and Page count) in all pages except last page. 
  currently i am having this code</p>
  
  <pre><code>    $dompdf = new DOMPDF();
      $html = ob_get_contents();
      $dompdf-&gt;load_html($html);
      $dompdf-&gt;render();
      $canvas = $dompdf-&gt;get_canvas();
      $font = Font_Metrics::get_font("helvetica", "12");                  
      $canvas-&gt;page_text(500, 770, "Page {PAGE_NUM} - {PAGE_COUNT}", $font, 10, array(0,0,0));
      $canvas-&gt;page_text(260, 770, "Canny Pack", $font, 10, array(0,0,0));
      $canvas-&gt;page_text(43, 770, $date, $font, 10, array(0,0,0));
      $pdf = $dompdf-&gt;output();
  </code></pre>
  
  <p>the above code in showing footer in all pages. but i dont want footer in last page. </p>
  
  <p>can anyone tell me how to do this?</p>