Ucze sie TCPDF i stworzylem sobie prosty formularz.
I chce pozniej generowac sobie pdf:
require_once('/tcpdf/config/lang/pol.php'); require_once('/tcpdf/tcpdf.php'); // create new TC PDF object $pdf = new TCPDF(); // page nr 1 $pdf->AddPage(); $txt1 = '<div id="body"> <table border="1px"> <tr> <td> <font face="Arial" size="10"><strong> Title*</strong></font> </td> <td> <font face="Arial" size="10"> '.$title.'</font> </td> </tr> </table> </div> '; $pdf->WriteHTML($txt1); $pdf->Output('generate.pdf', 'I');
w odpowiedzi dostaje taki blad

Cytat
Notice: Undefined offset: 1 in C:\xampp\htdocs\PDFGeneration\tcpdf\tcpdf.php on line 23109
TCPDF ERROR: Some data has already been output, can't send PDF file
TCPDF ERROR: Some data has already been output, can't send PDF file
co robie zle ?