What does HackerNews think of WeasyPrint?

The awesome document factory

Language: Python

#7 in CSS
#7 in HTML
#124 in Python
Is there an open source pure-.NET library that implements this?

I've heard good things about https://github.com/Kozea/WeasyPrint in Python.

I can really recommend weasyprint for (markdown→)html→pdf generation: https://github.com/Kozea/WeasyPrint

Things like columns, footers/headers, hyphenation are all easily done with modern CSS.

I wonder why they didn't pick up Weasy on the PDF build side? That's my go-to if I have access to a Python environment.

Probably too resource hungry, or some flippery making Jupiter work with it. I've seen Jupiter all over the place but haven't played with it.

https://github.com/Kozea/WeasyPrint

https://weasyprint.org/

Yeah, in the Python world there's WeasyPrint for PDF out in the wild as well. It's quite slick, but it's a harder sell because of Python, which corporate types seem to think is bad hacker central.

https://github.com/Kozea/WeasyPrint

I find wkhtmltopdf very difficult to work with, for instance the official documentation is just a man [1].

I discovered the project Weasyprint[2] a few months ago. I find it easier to use, and very powerful when using Python. You can define a custom loader to inject images or styles generated on the fly for instance.

There are still some missing features compared to wkhtmltopdf, such as defining a custom footer and header, but it's a very promising project.

[1] https://wkhtmltopdf.org/usage/wkhtmltopdf.txt

[2] https://github.com/Kozea/WeasyPrint/