para generar descarga pdf usando tcpdf
No puedo generar descargas de pdf, mi código es el siguiente, ¿alguien puede decirme qué es lo que está mal con este código?
include 'tcpdf.php';
$pdf = new TCPDF();
$pdf->AddPage('P', 'A4');
$html = '<html>
<head></head>
<body><table border="1">
<tr><th>name</th>
<th>company</th></tr>
<tr>
<td>hello</td>
<td>xx technologies</td>
</tr>
</table>
</body>
</html>';
$pdf->writeHTML($html, true, false, true, false, '');
$pdf->Output();
?>