Issue with HTML2PDF, not rendering PDF

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-11 04:35:56

问题


For some reason the HTML2PDF/TCPDF is not rendering the PDF... and I have no idea why... :S

render.php (main file)

form.php

(The links will lead you to the code im trying to use, so you can test it, you will only need the HTML2PDF Class)

can somebody tell me why the form isn't rendering??? I'm freaking out!!!

thanx in advance!!


回答1:


The answer was the execution time.

Solved it by using the set_time_limit() function.




回答2:


Check the webserver logs for any html2pdf-related errors. If you're using apache, command will look like this:

tail -f -n 500 /var/log/apache2/error.log

Updated my answer since if pdf gets rendered but is empty, it's not a permission issue.



来源:https://stackoverflow.com/questions/10017347/issue-with-html2pdf-not-rendering-pdf

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!