Inserting line breaks into PDF

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

    After having so many nightmares, I found a solution.

    utf8_decode(chr(10))
    

    I tried \n,
    and chr(10) but nothing worked. Then I realized that it was utf-8 and just tried the above one. It works fine with MultiCell but not with Cell.

提交回复
热议问题