title: multiple pdf files with html2pdf
body: <p>I need to create multiple PDF file from a php loop... any ideas on how to do that?
  I try to use html2pdf but I get a tag error (the include file is working fine beacuse the single output is working!):</p>
  
  <pre><code>require_once('html2pdf.class.php');
  $results = mysql_query("SELECT * FROM tbl ORDER BY id DESC LIMIT 10");
  while ($row = mysql_fetch_assoc($results)) { 
  $id=$row['id'];
         include('pdf.php');
          $content = ob_get_clean();
          try
          {
      $html2pdf = new HTML2PDF('P', 'A4', 'en', false, 'ISO-8859-1'); 
      $html2pdf-&gt;setTestTdInOnePage(false);
  
      $html2pdf-&gt;writeHTML($content, isset($_GET['vuehtml']));
              $Filename = "PDF_".$id.".pdf";
              $html2pdf-&gt;Output($Filename, 'F');
          }
          catch(HTML2PDF_exception $e) {
              echo $e;
              exit;
          }
        }
  </code></pre>
  
  <p><b>ERROR I get:</b><br /></p>
  
  <pre><code>File : /var/www/html/eco/_class/parsingHtml.class.php 
  Line : 117 HTML code invalid, a tag is closed too many times: &lt;table&gt; 
  HTML : ...&lt;/table&gt; &lt;/td&gt; &lt;...
  </code></pre>
  
  <p>If I add <strong>ob_start();</strong> before the include:</p>
  
  <pre><code>TCPDF ERROR: Unable to create output file: PDF_.pdf
  </code></pre>
  
  <p>Thanks</p>