Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Does anyone know of any other engines like this, either paid or free? We are using this to produce catalogs of 200+ complex pages and it is not handling generating PDFs of this size very well. It will often become unresponsive and create a memory leak.


That seems to be a qt problem, as far as I know. I think a saw somewhere how to recompile qt to get a more robust solution. The issue tracker of wkhtml is quite helpful here.

An easy solution could be to just use extremely short URLs as these seem to affect the space used by wkhtml as well. But that was just my solution for a 200 page output. In addition, if you are using HTML footers or headers, try not to give them any parameters, if possible.

Edit: I can't find the best entry at StackOverflow (I remember there must be a Python based solution as well), but this might be a good overview:

http://stackoverflow.com/questions/633780/converting-html-fi...

Some of those are commercial.


I think wkhtmltopdf and PhantomJS are the most active open source solutions.

There's also http://pypi.python.org/pypi/xhtml2pdf/, written in Python and using ReportLab (which certainly has some nice properties).



If you are not allergic to java, flying-saucer is quite good http://code.google.com/p/flying-saucer/ .




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: