html2pdf icon indicating copy to clipboard operation
html2pdf copied to clipboard

HTML2PDF draw image on php 8.1

Open alexmfCAT opened this issue 3 years ago • 1 comments

Hi

I updated my PHP to latest version (8.1) and, then, I get this error on my PDF generation: image

How I can fix this?

Best regards

alexmfCAT avatar Mar 25 '22 18:03 alexmfCAT

Hi,

The error you have seems related to array..

Are you using the latest HTML2PDF version? The readme file says that is compatible with PHP 8.0

I have scanned the build with PHPCompatibility for PHP v8 and no probem found. I have not scanned for v 8.1. I plan to update to PHP 8 this month so I have not test it yet.

*You may want to scan all your project files built with PHPCompatibility https://github.com/PHPCompatibility/PHPCompatibility

lenamtl avatar May 03 '22 14:05 lenamtl

Hi, I'm planning to update to PHP 8.1 did you fix the problems?

lenamtl avatar Nov 11 '22 15:11 lenamtl

it occurs when the html is bad formatted (ex: not the same number of cells on each row of a table)

spipu avatar Jan 28 '23 00:01 spipu