1
am having a problem generating a pdf file from an html string.
the error reported is as follows::
Uncaught exception 'DOMPDF_Exception' with message 'No block-level parent found. Not good.'
The PDF generation code is below:
$dompdf = new DOMPDF();
$dompdf->load_html(stripslashes($html));
$dompdf->set_paper("a4");
$dompdf->render();
$out = $dompdf->output();
It worked here! Thank you :)
– Isac Sandin
Saved my day Hahaha
– Fusseldieb
Saved here too, thank you!
– Mastria