top | item 35267729

(no title)

leecb | 2 years ago

Weasyprint is an excellent tool for converting HTML to PDF. It has supported CSS Paged Media Module for a while; this has been very useful for making printable PDFs from web pages.

Weasyprint seems to be one of the few HTML->PDF engines out there that doesn't depend on a browser engine. It's impressive just how much works (HTML, CSS, SVG, etc), given that this is a relatively simple project compared to a full-featured browser. Performance isn't bad, considering it is implemented in Python.

discuss

order

tehbeard|2 years ago

How well does it install on systems that don't run python web apps? (I.e. I have whatever python the distro comes with)

Currently reliant on wkhtmltopdf for a few client projects, and while it works it has some.. Oddities that if I can, I'd like to get rid of having to remember.

bobbylarrybobby|2 years ago

Unfortunately wkhtmltopdf seems to be sunsetted... it's GitHub repo was archived in January and there don't seem to be any plans to move development elsewhere. When its version of WebKit becomes too old to be useful, that'll sort of be it :(