Civi 4.5.6 on Drupal 7.3.5

Go to make a single contribution receipt and get the following error

Fatal error: Maximum execution time of 30 seconds exceeded in /srv/www/yyyyyy/public_html/sites/all/modules/civicrm/packages/dompdf/include/line_box.cls.php on line 78

any thoughts ?

1 Answer 1


It might depend of the template layout you use or token or... plenty of reasons that the pdf generation can become slow.

In general, if you want good performances for pdf generations, install wkhtmltopdf and configure civicrm to use it

The way pdf generation works is that civicrm generates an html page first, then convert it to pdf. wkhtmltopdf is a software that does it way faster than doing it in php native

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.