Task #1069 - PDF : saut de page non voulu quand une ligne est trop longue

This commit is contained in:
Dany De Bontridder 2014-12-06 19:56:10 +01:00
parent 6c40cde112
commit 585b1c575d

View file

@ -189,8 +189,9 @@ foreach ($a_poste as $poste)
$i++;
$pdf->LongLine($width[$i], 6, $detail['jr_internal'], 0, $lor[$i] );
$i++;
/* limit set to 20 for the substring */
$pdf->LongLine($width[$i], 6, mb_substr($detail['description'],0,120), 0,$lor[$i]);
/* limit set to 40 for the substring */
$triple_point = (mb_strlen($detail['description']) > 40 ) ? '...':'';
$pdf->LongLine($width[$i], 6, mb_substr($detail['description'],0,40).$triple_point, 0,$lor[$i]);
$i++;
$pdf->Cell($width[$i], 6, $detail['jr_pj_number'], 0, 0, $lor[$i]);
$i++;