WeasyPrint
QuestPDF
Our great sponsors
WeasyPrint | QuestPDF | |
---|---|---|
43 | 70 | |
6,610 | 10,403 | |
2.1% | 4.0% | |
9.4 | 9.0 | |
6 days ago | 5 days ago | |
Python | C# | |
BSD 3-clause "New" or "Revised" License | GNU General Public License v3.0 or later |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
WeasyPrint
-
Launch HN: Onedoc (YC W24) – A better way to create PDFs
Is there a reason you didn't consider something like Weasyprint?
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.
-
CSS for Printing to Paper
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.
-
Show HN: A new open-source library to design PDF using React
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!
- 1.5M PDFs in 25 Minutes
-
Htmldocs: Typeset and Generate PDFs with HTML/CSS
Flexbox support has been [included][1] since 2018, although my use case was the prototypical one - a single row w/ 3 columns - so YMMV with how it handles more complex layouts.
Some people might be interested in https://weasyprint.org/
-
How to Simply Generate a PDF From HTML in Symfony With WeasyPrint
Performance is not the strength of WeasyPrint, meaning that heavy HTML files will increase generation time. You should always compress images before attaching them, as they are not compressed by default. Generating a 50-page-long PDF may take up to a minute in extreme cases, although multi-page documents generated on my project take fewer than 2 seconds to generate.
-
Show HN: Invoice Dragon – An Open Source App to Create PDF Invoices for Free
For Python there is Weasyprint: you prepare the invoice as an HTML document, and Weasyprint turns it into a PDF
-
The Gemini protocol seen by this HTTP client person (curl dev)
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.
QuestPDF
-
How to generate PDFs in react?
I used that same library it worked great the only issue I had was the users would often have to manually set the scaling to fit to a page. I'm sure I could've fixed this in other ways if I was more competent with CSS but ended up just switching to use https://github.com/QuestPDF/QuestPDF in a backend instead of doing everything in front end.
-
QuestPDF will be dual licensed, no longer MIT only
I think you should ask these questions in related discussion on Github: https://github.com/QuestPDF/QuestPDF/discussions/491
-
.NET Monthly Roundup - January 2023
➡️ James Newton-King ♔ on Twitter: "Coming in .NET 8: Route tooling for ASP.NET Core" / Twitter ➡️ Announcing .NET Community Toolkit 8.1 ➡️ Uno Platform 4.7 – New Project Template, Performance Improvements and more ➡️ C# Advent 2022 Awards | Cross Cutting Concerns ➡️ GitHub - QuestPDF ➡️ DNF Summit 2023 ➡️ .NET Frontend Day
-
HTML to PDF free library? .NET 6.0
Does it have to be html to PDF? Otherwise I can recommend QuestPDF been amazing to work with.
If the actual goal is to generate PDF, I would like to recommend the open-sourcr QuestPDF library where you implement document structure using C# Fluent API. https://github.com/QuestPDF/QuestPDF
Like many have suggested, I also cast my vote on QuestPDF. No more +50MB library including a Chrome browser to render HTML so a PDF of it can be created, which took 2-3 seconds each time. But with QuestPDF, it's so much faster!
-
Convert html into PDF with IE11 from WPF
Also, the library is open-source, so you can take a look at the exact implementation of the layout engine. It is inspired by Flutter and WPF, though optimized for pageable content: https://github.com/QuestPDF/QuestPDF/tree/main/Source/QuestPDF/Elements
My recommendation is to use a dedicated tool designed for generating PDFs. Please take a look at https://github.com/QuestPDF/QuestPDF. This is a free (for commercial use too), open-source library used in thousands of projects so far. Everything is written in C# with FluentAPI, and there is a hot-reload capability to preview your changes in real-time 😀
-
QuestPDF: Modern .NET library for PDF document generation
Good point! There's an open issue regarding that, and it seems to be due to the fact that under the hood, QuestPDF uses Skia which itself lacks support for tagged PDF's: https://github.com/QuestPDF/QuestPDF/issues/193
What are some alternatives?
ReportLab
PyPDF2 - A pure-python PDF library capable of splitting, merging, cropping, and transforming the pages of PDF files
WKHTMLToPDF - Convert HTML to PDF using Webkit (QtWebKit)
PDFMiner - Python PDF Parser (Not actively maintained). Check out pdfminer.six.
PDF.Flow.Examples - Samples, articles, issue reporting and documentation related to Gehtsoft PDF.Flow library.
MathJax - Beautiful and accessible math in all browsers
ClosedXML.Report - ClosedXML.Report is a tool for report generation with which you can easily export any data from your .NET classes to Excel using a XLSX-template.
WeasyPrint-netcore - WeasyPrint Wrapper for .Net on Windows
Microcharts - Create cross-platform (Xamarin, Windows, ...) simple charts.
ScottPlot - Interactive plotting library for .NET
Blazor.SignaturePad - A Blazor UI component for smooth signature drawing on a HTML5 canvas.
SkiaSharp - SkiaSharp is a cross-platform 2D graphics API for .NET platforms based on Google's Skia Graphics Library. It provides a comprehensive 2D API that can be used across mobile, server and desktop models to render images.