Issue with HTML2PDF, not rendering PDF

2019-08-04 20:05发布

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!!

2条回答
爷、活的狠高调
2楼-- · 2019-08-04 20:52

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.

查看更多
姐就是有狂的资本
3楼-- · 2019-08-04 21:01

The answer was the execution time.

Solved it by using the set_time_limit() function.

查看更多
登录 后发表回答