html2pdf
html2pdf copied to clipboard
Call to a member function getParam() on null
Good day everybody! Had downloaded html2pdf library simple test works ok! require DIR.'/vendor/autoload.php'; use Spipu\Html2Pdf\Html2Pdf; $html2pdf = new Html2Pdf(); $html2pdf->writeHTML('This is my first test'); $html2pdf->output(); http://joxi.ru/ZrJR5jltQ3kL4r
but when I tried to convert real html require DIR.'/vendor/autoload.php'; use Spipu\Html2Pdf\Html2Pdf; $html2pdf = new Html2Pdf(); $html2pdf->writeHTML($html); $html2pdf->output();
I got this http://joxi.ru/EA4GObPUXP0Wy2
Please help
What does your HTML look like, can you post it?