Inserting line breaks into PDF

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

    You state that

    2 is the height of the multi-line text box

    No it's not. 2 is the distance between lines of text.

    I don't think there is a real way for calculating the height of the actual resulting text box, unless you use GetY() and then subtract the original Y value used in your SetXY() statement for placing the Multicell in the first place.

提交回复
热议问题