简体   繁体   English

dompdf中的生成问题

[英]Generation issue in dompdf

I'm using DomPDF to generate certificate in a project I'm working on. 我正在使用DomPDF在我正在研究的项目中生成证书。 I've done so several times before and never had any trouble but since today however It got so slow that the maximum execution time gets reached. 我之前已经做过好几次了,从没有遇到过任何麻烦,但是从今天开始,它是如此缓慢,以至于无法达到最大执行时间。 I've confirmed that this happens because of: $dompdf->render() I'm generating some tables to display the data in. but is seems to find this table quite difficult. 我确认发生这种情况的原因是: $dompdf->render()我正在生成一些表以显示数据。但是似乎很难找到该表。 Does anyone know what could be the problem? 有谁知道可能是什么问题?

It may be that you are trying to use styling for elements or selectors that are above CSS 2.1 (which dompdf currently supports). 可能是您试图对CSS 2.1(dompdf当前支持)之上的元素或选择器使用样式。 You can check this documentation to verify if the table styling is supported. 您可以检查此文档以验证是否支持表格样式。

Also be careful when using third party libraries such as Bootstrap, as they tend to require CSS support greater than CSS 2.1 (which is supported by dompdf). 在使用第三方库(例如Bootstrap)时也要小心,因为它们往往要求CSS支持大于CSS 2.1(dompdf支持)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM