Dear sir or madam,
my version is 5.9.100.
I found a bug which reduces the actual cell height value returned by 'getLastH' method when the cell is torn by the page break.
Try to create a simple table with the only 1 column, but big enough to have a page break which interrupts the table.
Set the height for all columns a static value, let's say, 15.
Launch 'getLastH' for all the cells and you'll notice that the value you get for the cell which is torn by the page break is less then others.
The value you get is the value from the second (bottom) part of the cell (from the second page), and this method doesn't take into account the above part of the same cell from the first page.
To get the actual height I used this code:
$height = $this->pdf->getLastH();
if (0 > $this->pdf->GetY() - $lastY)
$margins = $this->pdf->getMargins();
$height += $this->pdf->getPageHeight() - $lastY - $margins['bottom'];
Are you going to fix it?
Thank you for your work.
Log in to post a comment.