title: to generate pdf download using tcpdf
body: <p>i am not able to generate pdf download,my code is as follows,can anyone tell me what is wrong with this code.</p>
  
  <pre><code>include 'tcpdf.php';
  $pdf = new TCPDF();
  $pdf-&gt;AddPage('P', 'A4');
  $html = '&lt;html&gt;
  &lt;head&gt;&lt;/head&gt;
  &lt;body&gt;&lt;table border="1"&gt;
  &lt;tr&gt;&lt;th&gt;name&lt;/th&gt;
  &lt;th&gt;company&lt;/th&gt;&lt;/tr&gt;
  &lt;tr&gt;
  &lt;td&gt;hello&lt;/td&gt;
  &lt;td&gt;xx technologies&lt;/td&gt;
  &lt;/tr&gt;
  &lt;/table&gt;
  &lt;/body&gt;
  &lt;/html&gt;';
  
  $pdf-&gt;writeHTML($html, true, false, true, false, '');
  
  $pdf-&gt;Output();
  ?&gt;
  </code></pre>