1

I have a PHP script to generate a PDF with wkhtmltopdf and xvfb (to simulate X server).

Using command line, there is no problem.

When this script is incorporated into my website, wkhtmltopdf never stops.

I am using

  • Apache 2.4
  • PHP 5.4
  • wkhtmltopdf 0.11.0 rc1

What can cause this issue?

Fenton
  • 241,084
  • 71
  • 387
  • 401
Damax
  • 1,497
  • 19
  • 28
  • Like Gung Foo said, make sure the path is absolute. More importantly: make sure your html file ends in .html. Otherwise, wkhtmltopdf will fail silently. This has given me a headache some time ago. – Berry Langerak Sep 13 '12 at 10:37
  • make sure the paths are absolute. – Gung Foo Sep 13 '12 at 10:34
  • I check, the path is absolute. I stop a cron job that killing wkhtmltopdf. Now It never stop. – Damax Sep 13 '12 at 13:08
  • This seems to be a problem with a specific version of wkhtmltopdf. See this link: [http://stackoverflow.com/questions/11807438/php-shell-exec-hangs-when-using-wkhtmltopdf?rq=1](http://stackoverflow.com/questions/11807438/php-shell-exec-hangs-when-using-wkhtmltopdf?rq=1) –  Oct 29 '12 at 17:24

0 Answers0