4 ms·
WEasyPrint is great for generating invoices from html! https://weasyprint.org/ https://weasyprint.org/ Also the only good implementation of web layout/renderi
by promiseofbeans 1y ago
WEasyPrint is great for generating invoices from html!
https://weasyprint.org/ https://weasyprint.org/
Also the only good implementation of web layout/rendering I've seen done in python.
- skwee357 1y agoWhats the difference between them and running a headless chrome docker container?
- istjohn 1y agoWEasyPrint's Github: > From a technical point of view, WeasyPrint is a visual rendering engine for HTML and CSS that can export to PDF. It aims to support web standards for printing. WeasyPrint is free software made available under a BSD license. > It is based on various libraries but not on a full rendering engine like WebKit or Gecko. The CSS layout engine is written in Python, designed for pagination, and meant to be easy to hack on.
- genewitch 1y agoCool, not who you replied to but this is a cool idea, another way to archive pages. Gotta compare it to singlefile and headless chrome - I've been looking for a faster way to get a snapshot of a webpage via a chatbot (like in discord or matrix). Used to use Firefox headless, but large pages/slower sites would time out the api.