How to auto resize the cell in fpdf using php

后端 未结 2 1264
忘了有多久
忘了有多久 2021-01-28 16:28

I need to auto adjust the cell size depends upon the text . I have the following code .

$pdf->Cell(50,10,$name,1,0,\'L\',0);

If the $

2条回答
  •  被撕碎了的回忆
    2021-01-28 16:41

    you can use this code to solve this problem... here the concept is only if string size greater than your cell width then font size will reduce.

    $pdf->CellFit($table_head2[7],$table_height,$item['remark'],1,0,'C',0,'',1,0);
    

    check this URL

    how to auto adjust cell width in fpdf using php and mysql

提交回复
热议问题