How to use the wkhtmltopdf PDF converter
Hi,
I tried to enable PDF output on my 6.7 LTS, using Webkit. So I downloaded the binary version 0.11, wkhtmltopdf-i386. I uploaded it to my webspace and gave it a chmod a+x to be sure it can be executed.
I enabled PDF output in tiki, switched it to Webkit, and entered the entire path to the binary, /homepages/41/myaccountnumber/htdocs/tiki/lib/wkhtmltopdf-i386
But when I hit the PDF button on my wiki pages, it gives me either output of 0 bytes or some 12 KByte of binary garbage.
So I wanted to find out whether I can invoke a binary on my webspace, and wrote a fourliner in PHP to do shell_exec on exactly the same path, with only one parameter, --version.
And it correctly prints out its version, so it can be invoked using PHP on this webspace. So what could be wrong that it does not work in tiki? PHP is not in safe mode, and shell_exec is not prohibited by php.ini (which would also have affected the above test...).
Thanks alot
Oliver