Hi everyone,
i'm trying to convert a php variable into pdf using html2pdf but I've got an error message :
Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in administration/test/html2pdf.class.php on line 22
here is the code i'm using :
$devis = $_POST['devis'];
require_once(dirname(__FILE__).'/html2pdf.class.php');
$html2pdf = new HTML2PDF('P','A4','fr');
$html2pdf->WriteHTML($devis);
$html2pdf->Output('exemple.pdf');
Does someone has an idea how I can get this work ?