Ease of Use
WeasyPrint is designed to be simple and user-friendly, making it easy for developers to generate PDF documents from HTML and CSS without complex configurations.
CSS Support
It supports modern CSS standards, allowing developers to style their documents in a way that closely mirrors how they would style web pages.
Quality Output
WeasyPrint produces high-quality PDFs with precise layout and text rendering, suitable for professional use.
Open Source
Being an open-source tool, WeasyPrint is free to use and has a community that contributes to its continuous development and improvement.
Python Integration
WeasyPrint is written in Python and integrates seamlessly with Python applications, making it suitable for Python developers.
We have collected here some useful links to help you find out if WeasyPrint is good.
Check the traffic stats of WeasyPrint on SimilarWeb. The key metrics to look for are: monthly visits, average visit duration, pages per visit, and traffic by country. Moreoever, check the traffic sources. For example "Direct" traffic is a good sign.
Check the "Domain Rating" of WeasyPrint on Ahrefs. The domain rating is a measure of the strength of a website's backlink profile on a scale from 0 to 100. It shows the strength of WeasyPrint's backlink profile compared to the other websites. In most cases a domain rating of 60+ is considered good and 70+ is considered very good.
Check the "Domain Authority" of WeasyPrint on MOZ. A website's domain authority (DA) is a search engine ranking score that predicts how well a website will rank on search engine result pages (SERPs). It is based on a 100-point logarithmic scale, with higher scores corresponding to a greater likelihood of ranking. This is another useful metric to check if a website is good.
The latest comments about WeasyPrint on Reddit. This can help you find out how popualr the product is and what people think about it.
WeasyPrint comes up in every "HTML to image" search, so it's worth being precise: it's an excellent, actively-maintained pure-Python engine โ but it renders to PDF only (PNG export was removed in v53) and runs no JavaScript. If your table is static HTML/CSS and you actually want a PDF, WeasyPrint is a great, dependency-light choice and you don't need any of the above. If you need a PNG, or your table/chart is... - Source: dev.to / about 2 months ago
Just print to PDF in a browser, or automate that using a browser automation tool. For a non-browser-based open source solution, WeasyPrint. https://weasyprint.org/ For a proprietary solution, try Prince XML: https://www.princexml.com/. - Source: Hacker News / 10 months ago
How does it differ from https://weasyprint.org ? - Source: Hacker News / 12 months ago
You can learn more about weasyprint on their website (https://weasyprint.org/ ). It's an open source Python package that can be launched using cli or from Python code. - Source: Hacker News / about 1 year ago
This is interesting. So it's HTML -> PDF without using Chrome/Puppeteer etc.? Is that correct. It reminds me of https://weasyprint.org/ Weasyprint (by their own admission) have really struggled with a lot of bugs, which isn't surprising if you're allowing arbitrary HTML input - how are you getting on with that? - Source: Hacker News / about 1 year ago
WEasyPrint is great for generating invoices from html! https://weasyprint.org/ Also the only good implementation of web layout/rendering I've seen done in python. - Source: Hacker News / about 1 year ago
Wkhtmltopdf is not chromium though? "Wk" literally stands for WebKit. There's also https://weasyprint.org/ which doesn't use any browser engine, but rather a custom renderer. And both of those (and Prince) can be used as a backend by Pandoc (https://pandoc.org/). - Source: Hacker News / about 1 year ago
Just to note it : there is also https://weasyprint.org (but I also love Typst and it would be my first choice nowadays if I had to pick such a tool). - Source: Hacker News / about 1 year ago
To create our PDF reports, we use a combination of Weasyprint, Jinja, and Plotly charts. To render a report as a PDF, we first have to render all graphs as images. - Source: dev.to / over 1 year ago
Is there a reason you didn't consider something like Weasyprint? https://weasyprint.org I've gone through a number of systems to convert CV's, business cards, and other docs and it hasn't let me down yet. - Source: Hacker News / over 2 years ago
You don't _have_ to use a browser. I had very good results with Weasyprint [0]. And there's also PrinceXML [1] if you're willing to pay. [0]: https://weasyprint.org/. - Source: Hacker News / over 2 years ago
Thanks for your answer! I imagined you would be using PrinceXML behind the scenes since that is probably the gold standard in HTML+CSS rendering. The only open source alternative I know of is WeasyPrint at https://weasyprint.org/. I'm not sure how well it fares against PrinceXML, though. And thanks for the pointer to Taffy - I didn't know it before! - Source: Hacker News / over 2 years ago
Some people might be interested in https://weasyprint.org/. - Source: Hacker News / over 2 years ago
I use Weasyprint [1] to generate a PDF from HTML, and I use a static site generator to convert Markdown to HTML. Weasyprint can handle code highlighting e.g. Using Pygments or another static framework, the only downside is it can't execute JS so if you e.g. Want to dynamically generate content to render you need to first pass your HTML through a headless browser, which is also possible though. There's also... - Source: Hacker News / over 2 years ago
For Python there is Weasyprint: you prepare the invoice as an HTML document, and Weasyprint turns it into a PDF https://weasyprint.org/. - Source: Hacker News / about 3 years ago
Well yes, but you can implement HTML+CSS. WeasyPrint did from scratch, and independent implementations of HTML+CSS are considerably more numerous than HTML+CSS+JS. Source: about 3 years ago
You should maybe check out weasyprint. https://weasyprint.org/. Source: over 3 years ago
If you plan to create a PDF document from scratch, there are two methods to consider: RML and WeasyPrint. RML is an XML markup language, while WeasyPrint employs HTML/CSS markup. Both are capable of being converted into PDF. Source: over 3 years ago
If you don't have high typesetting needs, maybe WeasyPrint fits your use case. [1] https://weasyprint.org/. - Source: Hacker News / over 3 years ago
I would also recommend https://weasyprint.org if you are generating PDFs. Generating invoices, resumes, reports, flyers, etc. From plain Markdown is a two-line affair: https://taoofmac.com/space/notes/2023/03/19/1849#tuesday-2023-03-14. - Source: Hacker News / over 3 years ago
I've used https://weasyprint.org/ successfuly for similar things. Source: over 3 years ago
Do you know an article comparing WeasyPrint to other products?
Suggest a link to a post with product alternatives.
Is WeasyPrint good? This is an informative page that will help you find out. Moreover, you can review and discuss WeasyPrint here. The primary details have not been verified within the last quarter, and they might be outdated. If you think we are missing something, please use the means on this page to comment or suggest changes. All reviews and comments are highly encouranged and appreciated as they help everyone in the community to make an informed choice. Please always be kind and objective when evaluating a product and sharing your opinion.