我最近遇到了 MPDF 的问题。当我试图显示 1000 行的大表时,处理时间超过 10 分钟并且服务器正在崩溃。我必须在最后停止服务器,因为它不处理我的表。我在他们的论坛上看过这个解决方案。我使用了建议的解决方案,但我仍然遇到同样的问题。有人遇到过这个吗?请我需要一些帮助。谢谢
这是建议的解决方案:
http://mpdf.bpm1.com/forum/comments.php?DiscussionID=270
Reduced Memory Usage printing Tables
------------------------------------
mPDF uses a lot of memory when processing large tables. Parts of the script have been rewritten to
reduce memory consumption when writing tables which use collapsed borders (10-25% saving).
Memory usage can be reduced further by setting a configurable variable:
$this->packTableData = true; // default=false
but note that this causes a significant increase in processing time.