Hacker Newsnew | past | comments | ask | show | jobs | submit | rajh's commentslogin

In the Netherlands we have the KNMI data platform (https://dataplatform.knmi.nl) and also an open source weather app (https://gitlab.com/KNMI-OSS/KNMI-App).


I noticed that before when looking at some weather APIs. You have a lot better data in Europe available


I needed to transform a 12MB HTML file into a PDF document and headless Chrome quickly ran out of memory (4GB+).

We are now using a commercial alternative that seems be be using a custom engine that implements the HTML and CSS specs. The result is reduced memory usage (below 512MB during my tests) and the resulting PDF is much smaller, 3.3MB vs 42MB.


We use docraptor based on princexml engine but haven’t tried a huge pdf. We generate 20-30 page pdfs sometime and it works great.


We are also using DocRaptor. It takes around 20 seconds to generate the PDF, and we only need to generate it every night. So the costs are also not an issue at the moment.


Did you try Weasyprint?


Yes, I’ve tried all the open source projects I could find. Including Weasyprint and wkhtmltopdf. Weasyprint was much slower than headless Chrome and also required a lot of memory to process the HTML. And wkhtmltopdf is no longer maintained and crashed while processing.


I’m not sure what the benefits are in comparison with using Ansible with all the available modules and collections.

Because it seems most functionality is also available in https://galaxy.ansible.com/community/docker.


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

Search: