I need to convert HTML to PDF on a Linux system and integrate this functionality into a web application. Can you suggest any tools that are capable of doing this? Are there any other tools I should consider for this task?
So far, I have attempted the following:
html2ps htmlfilename > a.ps
ps2pdf a.ps > a.pdf
However, this method does not handle images properly and ignores CSS styles. My development environment is Linux (RHEL5).
I also tried using , but encountered the following error:
[root@localhost bin]# ./wkhtmltopdf www.example.com a.pdf
./wkhtmltopdf: error while loading shared libraries: libQtWebKit.so.4: cannot open shared object file: No such file or directory