There are still a problem where the code gets stuck in a never ending loop in the current version. Probably related to the text length and column width. When using the eztable function the code can get stuck in a loop. I narrowed it down to the ezText function getting run with the following parameters:
$pdf->ezText("<b>Konto</b>", 10, [ "aleft" => 55.14, "aright" => 59.477, "justification" => "left"], 0);
Which make this line never return an empty string. So the while loop continues forever.
|
$line = $this->addText($left, $this->y, $size, $line, $right - $left, $just, 0, 0, $test); |
Can be reproduced with this code:
<?php
include 'src/Cezpdf.php';
$pdf = new Cezpdf();
$pdf->ezText("<b>Konto</b>", 10, [ "aleft" => 55.14, "aright" => 59.477, "justification" => "left"], 0);
$pdf->ezStream();
There are still a problem where the code gets stuck in a never ending loop in the current version. Probably related to the text length and column width. When using the eztable function the code can get stuck in a loop. I narrowed it down to the ezText function getting run with the following parameters:
Which make this line never return an empty string. So the while loop continues forever.
pdf-php/src/Cezpdf.php
Line 1985 in f957e49
Can be reproduced with this code: