Closed ghost closed 9 years ago
Hello !
I searched on github and this file shows how it is used : https://github.com/constantkaczmarek/PT_LEA_1415/blob/f656ef4aeb7b1f87e88dc7098db77a1e69aaf592/src/LEA/ProfBundle/Controller/ODMController.php#L111
The three important lines are :
$html2pdf = $this->get('html2pdf_factory')->create('P','A4','fr'); // Get the html2pdf instance properly configured
$html2pdf->writeHTML($html); // Import the html to convert
$html2pdf->Output('Facture.pdf'); // Write the generated pdf somewhere
Hello can u have example to try using this bundle please ?