I found a very good post which demonstrate how to integrate dompdf in CodeIgniter.
CodeIgniter Wiki – PDF generation using dompdf
For some unknown reasons, i found that the the pdf_create() function will get stuck when i try to create a pdf file and this results in timeout error. I located the problem which is caused by $dompdf->render(). After searching for a while. i finally found the failure reason @ Google Groups dompdf – Max execution time error.
The timeout problem occurs when your pdf template view file has a nested table! The problem is resolved after i removed the nested table.
Reference:
GENIUS!
I had simple table with one image per row and it timeouted with max execution time set to 600 seconds!
I removed table and…. EUREKA! IT WORKS! (wtf btw 😉 )
LikeLike
haha~ good to know that it helps~ =D
thanks for your comment~~ ^.^
LikeLike
what do you mean, you just remove table and use the div ? is it work ?
LikeLike
Nested table means a table inside table. So make sure u don’t there is no
table
tag wrapper by anothertable
tag.LikeLike
Thanks for your info it works fine on my end.
LikeLike
i don’t have nested tables but don’t works for me. i just have too many tr nodes!
LikeLike
Same issue occur.
LikeLike