I have a pet project on my queue waiting for years… that is get GitHub - litehtml/litehtml: Fast and lightweight HTML/CSS rendering engine and some library that can generate pdfs and create a HTML->pdf renderer that doesn’t depend on X, Qt, GTK, etc… i.e. doesn’t depend on wkhtmltopdf.
But unfortunately this project couldn’t be written in Crystal because the idea is to expose a C API, so any other language could use it with no problems.