3 ms·
Ask HN: Best way to programtically convert html -- pdf
So far I know of wkhtmltopdf and phantomjs. Are there any others in the market I might be missing?
- danielwozniak 14y agohttp://www.reportlab.com/ http://www.reportlab.com/
- zrail 14y agoThe very best way to convert HTML to PDF is using PrinceXML[0]. It's a commercial product but by all accounts it is completely worth the money. [0]: http://www.princexml.com/ http://www.princexml.com/
- stevekemp 14y agoA lot of this will come down to your environment, if you can use PDFLib, etc. Me? When I needed this last for generating printable/downloadable invoices in PDF I used the system binaries "html2ps" & "ps2pdf". Not ideal. But certainly good enough.
- datr 14y agowkhtmltopdf (http://code.google.com/p/wkhtmltopdf/ http://code.google.com/p/wkhtmltopdf/) is a cool little project which uses the webkit rendering engine to generate the pdf.
- strick 14y agoI've used htmldoc http://www.htmldoc.org/ http://www.htmldoc.org/ for this and it has worked well for simple pages.