如果 rowspan 有很多数据,Mpdf 自动缩小表格

发布于 2025-01-18 21:48:45 字数 408 浏览 2 评论 0原文

我正在使用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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

凉世弥音 2025-01-25 21:48:45

我有同样的问题。我认为这个问题是当您的表格内有桌子时。

I have the same problem. I think that problem is when you have Table inside Table.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文