有没有什么办法可以防止这个表中断行
我想在新页面中开始新行而不是当前页面。
Is there any way to prevent this table break in row
I want to start new row in new page rather than current page.
最满意答案
我在旧项目中遇到过类似的问题,并且设置了AutoPageBreak=false并在for循环中检查增量是否达到特定值,然后关闭表并在addPage()继续使用新表之后。
它不是优雅的,但在我的情况下,希望它可以帮助!
I had a similar issue in an old project, and I am setting AutoPageBreak=false and within for-loop I check if the increment has reached a particular value, then I close the table and after addPage() continue with a new table.
Its not elegant but works in my case, hope it helps!
tcpdf在html表格块中防止分页(tcpdf prevent page break within a html table block)有没有什么办法可以防止这个表中断行
我想在新页面中开始新行而不是当前页面。
Is there any way to prevent this table break in row
I want to start new row in new page rather than current page.
最满意答案
我在旧项目中遇到过类似的问题,并且设置了AutoPageBreak=false并在for循环中检查增量是否达到特定值,然后关闭表并在addPage()继续使用新表之后。
它不是优雅的,但在我的情况下,希望它可以帮助!
I had a similar issue in an old project, and I am setting AutoPageBreak=false and within for-loop I check if the increment has reached a particular value, then I close the table and after addPage() continue with a new table.
Its not elegant but works in my case, hope it helps!
发布评论