title: MPDF undefined index error
body: <p>I am using MPDF library to convert HTML to PDF.</p>
  
  <p>Here is my code.</p>
  
  <pre><code>$HTML = '{HTML CONTENT GOES HERE}'; //HTML STRING
  
  $MPDF-&gt;WriteHTML($html); // Converting
  
  $MPDF-&gt;Output('preview.pdf','F'); //Saving to a File
  </code></pre>
  
  <p>It works , but generating too much errors in error log ,</p>
  
  <pre><code>ERROR - 2012-11-10 04:45:50 --&gt; Severity: Notice  --&gt; Undefined index: BODY C:\wamp\www\crm\application\libraries\mpdf.php 14242
  ERROR - 2012-11-10 04:45:50 --&gt; Severity: Notice  --&gt; Undefined index: BODY&gt;&gt;ID&gt;&gt; C:\wamp\www\crm\application\libraries\mpdf.php 14288
  ERROR - 2012-11-10 04:45:50 --&gt; Severity: Notice  --&gt; Undefined offset: -1 C:\wamp\www\crm\application\libraries\mpdf.php 14421
  ERROR - 2012-11-10 04:45:50 --&gt; Severity: Notice  --&gt; Undefined variable: cstr C:\wamp\www\crm\application\libraries\mpdf.php 31951
  ERROR - 2012-11-10 04:45:50 --&gt; Severity: Notice  --&gt; Undefined index: DIV C:\wamp\www\crm\application\libraries\mpdf.php 14242
  ERROR - 2012-11-10 04:45:50 --&gt; Severity: Notice  --&gt; Undefined index: ID&gt;&gt;PRINT_WRAPPER C:\wamp\www\crm\application\libraries\mpdf.php 14280
  ERROR - 2012-11-10 04:45:50 --&gt; Severity: Notice  --&gt; Undefined index: DIV&gt;&gt;CLASS&gt;&gt;PRINTWRAPPER C:\wamp\www\crm\application\libraries\mpdf.php 14284
  ERROR - 2012-11-10 04:45:50 --&gt; Severity: Notice  --&gt; Undefined index: DIV&gt;&gt;ID&gt;&gt;PRINT_WRAPPER C:\wamp\www\crm\application\libraries\mpdf.php 14288
  ERROR - 2012-11-10 04:45:50 --&gt; Severity: Notice  --&gt; Undefined index: DIV C:\wamp\www\crm\application\libraries\mpdf.php 14242
  </code></pre>
  
  <p>anybody have some working experience with this library ? (If it only outputs some errors then we can fix it by changing on the library , but here it gives too much error) , i think that i am missing something.</p>
  
  <p>Please help me.</p>
  
  <p>Thanks.</p>