title: How to add Header and Footer in Dompdf?
body: <p>I am generating a html2pdf using Dompdf and my code is</p>
  
  <pre><code>$html='&lt;div&gt;--content of pdf--&lt;/div&gt;';
  require_once('resources/dompdf/dompdf_config.inc.php');
  $dompdf = new DOMPDF();
  $dompdf-&gt;load_html($html);
  $dompdf-&gt;render();
  $output = $dompdf-&gt;output();
  $dompdf-&gt;stream("transaction.pdf");
  </code></pre>
  
  <p>My pdf generated successfully now i want to add image in header of that pdf so can any one tell me how can i insert header and footer for Dompdf and specially where to put the header code?</p>