title: mpdf page addition
body: <p>I am converting html to PDF. All working well except when there is a long html , having multiple pages. After conversion, its output is displayed in one PDF page, i need auto pagination .Is it supported by mPDF. It works well with all other HTML but not with few am working. I tried to copy my code here , but it was very long so cant put here.</p>
  
  <p>My Html is not valid , I know it.I used HTML purifier to fix it, but its not completely fixed.  I read in net that if there are nested tables then this may happens. But i need a solution .   </p>
  
  <p>Here is my code.</p>
  
  <pre><code>&lt;?php
  error_reporting(E_ALL ^ E_NOTICE);
  ini_set('display_errors','Off');
  //ini_set("pcre.backtrack_limit","1000000");
  ini_set("memory_limit","256M"); 
  $html = 'My long invalid HTML';
  
  
  include_once('../htmlpurifier/library/HTMLPurifier.auto.php');
  $config = HTMLPurifier_Config::createDefault();
  $config-&gt;set('Core', 'Encoding', 'UTF-8');
  $config-&gt;set('HTML', 'Doctype', 'HTML 4.01 Transitional');
  $filter = new HTMLPurifier($config);
  $html = $filter-&gt;purify($html);
  include("mpdf.php");
  $mpdf=new mPDF('c');
  $mpdf-&gt;SetDisplayMode('fullpage');
  $mpdf-&gt;WriteHTML($html);
  $mpdf-&gt;Output();
  exit;
  </code></pre>