title: MPDF : independent informations in multiple pages
body: <p>I actually use MPDF in order to show my HTML code on a PDF.
  The problem that I have a lot of  payroll employees , and I want to make each payroll on a page.
  This code works well. </p>
  
  <pre><code>        $html  = $this-&gt;view-&gt;partial('fiche/telechargerfiche.phtml',
              array('fichep' =&gt; $recuperationFiche));
  
      $mpdf=new mPDF();
      foreach ($recuperationFiche as $fiche) {
  
      $mpdf-&gt;SetDisplayMode('fullpage');
      $mpdf-&gt;WriteHTML($html);
      $mpdf-&gt;SetHTMLFooter("&lt;div style='text-align: center'&gt;&lt;img src='pieddepage.jpg' /&gt;&lt;/div&gt;") ;
      $mpdf-&gt;Output();
      exit;
  </code></pre>
  
  <p>But the problem is that my payrolls is shown successively in the same page.
  Now I want to make each payroll on an independant page .
  I have to use a foreach , but I don't know where is the error , because it's shown to me the same result :</p>
  
  <pre><code>        $html  = $this-&gt;view-&gt;partial('fiche/telechargerfiche.phtml',
              array('fichep' =&gt; $recuperationFiche));
  
      $mpdf=new mPDF();
      foreach ($recuperationFiche as $fiche) {
  
      $mpdf-&gt;SetDisplayMode('fullpage');
      $mpdf-&gt;WriteHTML($html);
      $mpdf-&gt;SetHTMLFooter("&lt;div style='text-align: center'&gt;&lt;img src='pieddepage.jpg' /&gt;&lt;/div&gt;") ;
      $mpdf-&gt;Output();
      exit;
      }
  </code></pre>