TCPDF: HTML table and page breaks

后端 未结 8 1361
刺人心
刺人心 2021-01-31 04:04

I am creating a large HTML table and I have problem with page breaks as you can see in the following image:

Is there a method settle down the problem automatically? Or

8条回答
  •  太阳男子
    2021-01-31 04:25

    I know it's rather old question, but I had this same issue today, my table was splitted between pages and I investigated a little bit further on the method from FastTrack's answer and it turned out that you can also use the nobr="true" attribute also to the

    tag. That is, for me such code solved this problem:

    Test Test 2

    Warning - this code makes sense only when your tables are smaller than one page.

提交回复
热议问题