tecnickcom / TCPDF

Official clone of PHP library to generate PDF documents and barcodes
https://tcpdf.org
Other
4.18k stars 1.51k forks source link

Blank rows on table overlapping two pages + images #529

Open eugenio11 opened 2 years ago

eugenio11 commented 2 years ago

Hi, I am experiencing a very odd issue. I have a long HTML table (the resulting PDF is 5 pages) containing text and/or images. When a cell only contains text and TCPDF needs to split it over two pages, everything is fine.*

When a cell contains text + images (images are one or two 20x20px icons at the end of the text, one close to the other) and the images are displayed in the following page, then something breaks and we can see weird behaviours that seems to be client-dependent. With MacOS Preview, the PDF is fine, even if those icons (the ones in the following page) are not aligned as they should (and as the others) With Acrobat Reader on Windows, after the icons (sometimes only one icon is displayed instead of two), for the ENTIRE page, the rows are blank (table borders are displayed, but cells are empty).

To make things even more confusing, if I add a blank space between the icons, things seem to work.

Any idea? Thanks.

Eugenio