title: Dompdf draw line on every page
body: <p>I'm trying to generate nice pdf from html file with Dompdf but I'm unable to draw a line 
  on every page. Here is an exemple of the php file.</p>
  
  <pre><code>&lt;?php 
  require_once("dompdf/dompdf_config.inc.php");
  
  $html = file_get_contents("test.txt");
  $html = utf8_decode($html);
  
  $dompdf = new DOMPDF();
  $dompdf-&gt;load_html($html);  
  
  $dompdf-&gt;render();
  
  $font = Font_Metrics::get_font("helvetica", "bold");
  $canvas = $dompdf-&gt;get_canvas();
  $footer = $canvas-&gt;open_object();
  
      $canvas-&gt;line(10,730,800,730,array(0,0,0),1);
      $canvas-&gt;page_text(555, 750, "{PAGE_NUM}/{PAGE_COUNT}",
                     $font, 10, array(0,0,0));
  
  $canvas-&gt;close_object();
  $canvas-&gt;add_object($footer, "all");
  
  $dompdf-&gt;stream("dompdf_out.pdf", array("Attachment" =&gt; false));
  ?&gt;
  </code></pre>
  
  <p>This produce a pdf where each page contain the page number, but only the last page have a line.</p>
  
  <p>So how can i draw line/images on every page with Dompdf ?</p>