Php produces pdf without issue when does not span, nested tables are not in use, and
HTML2PDF::$_subobj->pdf->getPage();
doesn't seem to address the bug/issue. Anyone run into this ERROR n°7?
Add the following in your function to solve the error
html2pdf->setTestTdInOnePage(false);
If you have a long picture (in table td) , example 1200px you can get this error. I fixed my picture to 600px and problem solved.
Example: My photo is 3000x2000 (width:height) I resized photo to 600x400.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With