doubao12345 2013-11-24 05:54
浏览 116

如果文本在fpdf php中增加单元格的宽度,则更改文本行?

i am trying to generate a pdf in php via fpdf, the table is populated with data from the database but the length of the text is more than the width of the cell, so how to change line of the text if the length of the text increases the width of the cell? here is the code

$this->Cell(20, 6, $field, 1, 0, 'L', true);

Any help would be appreciable.

  • 写回答

1条回答 默认 最新

  • dream07769 2013-11-24 06:05
    关注

    May be you should try

    The MultiCell is used for print text with multiple lines. It has the same atributes of Cell except for ln and link.

    $pdf->MultiCell( 200, 40, $field, 1);

    评论

报告相同问题?