Inserting line breaks into PDF

前端 未结 13 1716
佛祖请我去吃肉
佛祖请我去吃肉 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:49

    I changed '\n' for chr(10) and it worked:

    $pdf->MultiCell(0,5,utf8_decode($variable1 . chr(10) . $variable2),1);
    

提交回复
热议问题