docs/en/Community-Articles/2026-01-19-Trend-PDF-Libraries-For-CSharp/article.md
So you're looking for a PDF library in .NET, right? Here's the thing - just because something has a million downloads doesn't mean it's what you should use today. I'm looking at recent download momentum (how many people are actually using it NOW via NuGet) and GitHub activity (are they still maintaining this thing or did they abandon it?).
I pulled data from the last ~90 days for the main players in the .NET PDF space. Here's what's actually happening:
| Library | GitHub Stars | Avg Daily NuGet Downloads | Total NuGet Downloads | Popularity Score |
|---|---|---|---|---|
| Microsoft.Playwright | 2.9k | 23k | 39M | 71/100 |
| QuestPDF | 13.7k | 8.2k | 15M | 54/100 |
| PDFsharp | 862 | 9k | 47M | 48/100 |
| iText | 1.9k | 17.2k | 16M | 44/100 |
| PuppeteerSharp | 3.8k | 8.7k | 26M | 40/100 |
How I calculated the score: I weighted GitHub Stars (30%), Daily Downloads (40% - because that's what matters NOW), and Total Downloads (30% - for historical context). Everything normalized to 0-100 before weighting. Higher = better momentum overall.
NuGet: PdfSharp | GitHub: empira/PDFsharp
What it does: Code-first PDF stuff - drawing, manipulating, merging, that kind of thing. Not for HTML/browser rendering though, so don't try to convert your React app to PDF with this.
What's the vibe? Stable, but kinda old school. It's got the biggest total download count (47M!) but only pulling ~9k/day now. They updated it 2 weeks ago (Jan 6) so it's alive, and it supports .NET 8-10 which is nice. The GitHub stars (862) are pretty low compared to the shiny new kids, but honestly? It's been around forever and people still use it. It's the reliable old workhorse.
Pick this if:
NuGet: itext | GitHub: itext/itext-dotnet
What it does: The enterprise beast. Digital signatures, PDF compliance (PDF/A, PDF/UA), forms, all that fancy stuff. Can do HTML-to-PDF too if you need it.
What's the vibe? Actually doing pretty well! ~17.2k downloads/day (highest for code-first libs), updated literally yesterday (Jan 18). They're moving fast. 1.9k stars isn't huge but the community seems active. The catch? This is the enterprise option - check the licensing before you commit if you're doing commercial work.
Pick this if:
NuGet: Microsoft.Playwright | GitHub: microsoft/playwright-dotnet
What it does: Browser automation that can turn HTML/CSS/JS into PDFs. Uses real browser engines (Chromium, WebKit, Firefox) so your PDFs look exactly like they would in a browser.
What's the vibe? Killing it. ~23k downloads/day (highest in this whole list!). It's Microsoft-backed so you know they're not gonna abandon it anytime soon. Last commit was December 3rd but honestly that's fine, they're actively maintaining. 2.9k stars and climbing. If you need to turn web pages into PDFs, this is probably your best bet right now.
Pick this if:
NuGet: PuppeteerSharp | GitHub: hardkoded/puppeteer-sharp
What it does: Basically Playwright's older sibling. Uses headless Chromium to turn HTML into PDFs. Same idea, different API.
What's the vibe? Stable but losing ground. Got updated last week (Jan 12) so it's maintained, but ~8.7k/day is way less than Playwright's ~23k. 3.8k stars is decent though. It works fine, but Playwright is eating its lunch. Still, if you know Puppeteer already or only need Chromium, this might be fine.
Pick this if:
NuGet: QuestPDF | GitHub: QuestPDF/QuestPDF
What it does: Build PDFs with fluent C# APIs. Think of it like building a UI layout, but for PDFs. No HTML needed - it's all code, all .NET.
What's the vibe? The community favorite. 13.7k stars (most by far!), updated yesterday (Jan 18). ~8.2k downloads/day isn't the highest but the community is clearly excited about it. Modern API, active dev, people seem to actually enjoy using it. If you're building reports/invoices from code and want something that feels modern, this is it.
Pick this if:
Here's what the numbers are telling us:
QuestPDF - Score: 54/100 The people's choice. Most GitHub stars (13.7k), updated yesterday, community loves it. Downloads aren't the highest but the engagement is real. This is what people are excited about.
iText - Score: 44/100
Actually pulling the most daily downloads (~17.2k/day) for code-first libs, also updated yesterday. The enterprise crowd is still using this heavily. Just watch that licensing.
PDFsharp - Score: 48/100 The old reliable. 47M total downloads but only ~9k/day now. It works, it's stable, but it's not where the momentum is. Still a solid choice if you need something battle-tested.
Microsoft.Playwright - Score: 71/100 Winner winner. ~23k downloads/day (highest overall), Microsoft backing, actively maintained. If you need HTML-to-PDF, this is probably the move.
PuppeteerSharp - Score: 40/100 Still kicking around at ~8.7k/day but Playwright is clearly the future. Updated last week so it's not dead, just... less popular.
Building PDFs from code (not HTML):
Converting HTML/web pages to PDF:
Bottom line: For HTML-to-PDF, Playwright is dominating. For code-first, QuestPDF has the hype but iText has the downloads. Choose your fighter.
Numbers from GitHub and NuGet as of January 19, 2026. Daily downloads are from the last 90 days.