Export HTML to PDF

Acubi picture Acubi · Jul 7, 2011 · Viewed 20.6k times · Source

I need to generate a PDF file from an existing pure HTML files when clicking 'Export' button. As I am working on the php project, a solution that can easily be used in a java-project is preferable.

Thanks for all the answers

Answer

jncraton picture jncraton · Jul 7, 2011

I'm not sure how well it would integrate into PHP, but I use pandoc for all sorts of document conversion. It can handle HTML to PDF.

http://johnmacfarlane.net/pandoc/