Better HN
topnewbestaskshowjobs
Log inSign up

rajh

15 karma · joined Sep 12, 2010 (16y ago) · 5 submissions

Submissions

comment 1y ago · link · parent

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).

comment 2y ago · link · parent

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.

comment 2y ago · link · parent

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.

comment 2y ago · link · parent

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.

comment 3y ago · link · parent

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.