如果 rowspan 有很多数据,Mpdf 自动缩小表格
我正在使用MPDF,并且关于Table Rowspan遇到了一些奇怪的问题。如果表在Rowspan中有更多数据,则它们正在减小字体大小,但我必须将表移至新页面。
我已经尝试了许多解决方案的shillink_tables_to_fit到1和< table autosize =“ 1”>
,但它们都没有工作。
有人可以帮我怎么做吗?
$mpdf = new Mpdf(['shrink_tables_to_fit' => 1,
'tableMinSizePriority' => true,
'use_kwt' => true]);
这是我的MPDF设置。
I'm using Mpdf and i got some strange issue regarding table rowspan. If table have more data in rowspan then they are reducing font size but instead of that i have to shift table to new page.
I have tried many solution of shrink_tables_to_fit to 1 and <table autosize="1">
but none of them are working.
Can someone please help me how to do so?
$mpdf = new Mpdf(['shrink_tables_to_fit' => 1,
'tableMinSizePriority' => true,
'use_kwt' => true]);
This is mpdf setup of mine.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我有同样的问题。我认为这个问题是当您的表格内有桌子时。
I have the same problem. I think that problem is when you have Table inside Table.