marcq
Member
Hi,
I would like to generate a PDF file (with dompdf) directly from the list view.
I have installed the PHP list plugin and put the following code into the PHP field :
But nothing happens. Is there a way to generate a dompdf file directly from the list view ?
Thanks,
Marc
I would like to generate a PDF file (with dompdf) directly from the list view.
I have installed the PHP list plugin and put the following code into the PHP field :
Code:
require("libraries/dompdf/dompdf_config.inc.php");
$html =
'<html><body>'.
'<p>TEST GENERATION FICHIER PHP.</p>'.
'</body></html>';
$dompdf = new DOMPDF();
$dompdf->load_html($html);
$dompdf->render();
$dompdf->stream("sample.pdf");
But nothing happens. Is there a way to generate a dompdf file directly from the list view ?
Thanks,
Marc