Inserting line breaks into PDF

前端 未结 13 1662
佛祖请我去吃肉
佛祖请我去吃肉 2020-11-30 12:34

I\'m generating some PDF file on the fly using PHP. My problem is I need to insert line breaks in some part of the text that will be inserted in the PDF file. Something like

13条回答
  •  無奈伤痛
    2020-11-30 12:37

    MultiCell($w, $h, 'text
    ', $border=0, $align='L', $fill=1, $ln=0, $x='', $y='', $reseth=true, $reseth=0, $ishtml=true, $autopadding=true, $maxh=0);

    You can configure the MultiCell to read html on a basic level.

提交回复
热议问题