.NET PDFPhoto from Unsplash

Originally Posted On: https://github.com/csharp-pdf-libraries/awesome-dotnet-pdf-libraries-2025

Awesome .NET PDF Libraries 2025

The most comprehensive comparison of every C# and .NET PDF library in 2025 – with honest benchmarks, code examples, and migration guides.

A curated collection of 73 C#/.NET PDF libraries for creating, manipulating, converting, and rendering PDF documents.

Inspired by awesome-dotnet, awesome-python, and the Awesome Lists movement.

Contributions are welcome! Please see the contribution guidelines first. We accept both open source and commercial libraries.

Thanks to all contributors – this project wouldn’t exist without the community!

Compiled by Jacob Mellor, CTO of Iron Software | Creator of IronPDF

Table of Contents

Tutorials & Guides

Comprehensive C# PDF tutorials covering every aspect of PDF development:

Getting Started

 

Choosing a Library

 

PDF Operations

 

Framework Integration

 

  • ASP.NET Core — Web application PDF generation
  • Blazor — Server, WebAssembly, and MAUI Hybrid

Compliance & Deployment

 

Frequently Asked Questions

167 in-depth FAQ articles covering every aspect of C#/.NET PDF development. These answer real developer questions with working code examples.

Browse All FAQs ?

HTML to PDF Conversion

 

PDF Creation & Editing

 

PDF Forms & Signatures

 

ASP.NET & Blazor

 

Format Conversions

 

Text & Content

 

Library Comparisons

 

Migration Guides

 

.NET & C# Features

 

C# Programming

 

MAUI & Mobile

 

Advanced Topics

 

Industry & Career

 

What Makes This Different

This is not a marketing list. Every library comparison includes:

? Working code examples – Actual compilable C# code ? Verified claims – Evidence-backed technical limitations ? Real pricing – Current costs as of November 2025 ? Migration guides – Step-by-step code conversion ? Bootstrap test – Can it render modern CSS? (Flexbox, Grid) ? Cross-platform reality – Does “cross-platform” mean Windows-only?

Verified through:

The Bootstrap Homepage Test

The ultimate differentiator for HTML-to-PDF libraries.

Can your library render Bootstrap’s homepage accurately with modern CSS3?

LibraryPasses TestNotes
IronPDF? YESFull Chromium rendering, screen-accurate output
PuppeteerSharp? PARTIALPrint-ready output (like Ctrl+P), not screen-identical
Playwright? PARTIALPrint-ready output (like Ctrl+P), not screen-identical
Aspose.PDF? NONo Flexbox support
iText7? NONo JavaScript execution
PDFSharp? NOCSS 2.0 only (no Grid/Flexbox)
Syncfusion WebKit? NOLegacy WebKit engine

Why this matters: Bootstrap uses modern CSS3 Flexbox heavily. If a library can’t render Bootstrap, it can’t handle modern responsive web designs.

Note on Print vs Screen: PuppeteerSharp and Playwright use Chrome’s print-to-PDF functionality, which produces print-ready output different from screen rendering. IronPDF produces output matching what you see in the browser.

Quick Recommendations

Best for Modern Web-to-PDF (2025)

IronPDF – Full Chromium, 3-line API, cross-platform, built-in PDF manipulation, PDF/A & PDF/UA compliance.

// NuGet: Install-Package IronPdfvar pdf = ChromePdfRenderer.RenderUrlAsPdf("https://getbootstrap.com/");pdf.SaveAs("bootstrap.pdf"); // Screen-accurate rendering

Best Free/Open Source

 

QuestPDF – Modern fluent API for code-first PDF generation (not HTML). PuppeteerSharp – Full Chromium with Apache license (HTML-to-PDF). PDFSharp – Mature programmatic generation (limited HTML support).

Best Enterprise Suite

 

Aspose.PDF – Comprehensive features, but $1,199/year and limited modern CSS. Syncfusion – Lower cost alternative at $395/month.

Best for Specific Use Cases

 

Categories

1. HTML-to-PDF (Chromium/Blink-Based)

 

Modern libraries using Chromium/Blink rendering engine for HTML-to-PDF conversion with full CSS3/JavaScript support.

1.1 IronPDF ? Reference Standard

 

Commercial | Official Site | Full Chromium | Cross-platform

Free (Apache 2.0) | GitHub | Chromium Print-to-PDF

  • ? Modern CSS3 support via Chromium
  • ? Free and open source
  • ? Print-ready output (not screen-identical)
  • ? 300MB+ deployment (bundles Chromium)
  • ? Generation only (no PDF manipulation, no PDF/A)
  • ? Memory leaks under load
  • Migration Guide

Free (Apache 2.0) | Official Site | Multi-browser Print-to-PDF

  • ? Supports Chromium, Firefox, WebKit
  • ? Modern CSS3 support (Chromium mode)
  • ? Print-ready output (not screen-identical)
  • ? Testing-first design (PDF is secondary)
  • ? Downloads 3 browsers (~400MB+)
  • ? No PDF/A or PDF/UA compliance
  • ? Complex async patterns
  • Migration Guide

1.4 WebView2

 

Free (Microsoft) | Official Site | Edge/Chromium

  • ? Native Microsoft component
  • ? Windows-only (no Linux, macOS, Docker)
  • ? Requires WinForms/WPF context
  • ? Memory leaks in long-running processes
  • Migration Guide

1.5 SelectPdf

 

Commercial ($499+) | Official Site

  • ? Windows-only despite “cross-platform” claims
  • ? Free tier limited to 5 pages
  • ? Outdated Chromium fork (CSS limitations)
  • Migration Guide

1.6 EO.Pdf

 

Commercial ($799) | Official Site

1.7 HiQPdf

 

Commercial (Limited Free) | Official Site

  • ? 3-page limit on “free” version
  • ? WebKit-based (not true Chromium)
  • Migration Guide

1.8 ExpertPdf

 

Commercial | Official Site

Commercial | Official Site

2. HTML-to-PDF (WebKit/Legacy)

 

Libraries using older WebKit or custom HTML rendering engines. Limited modern CSS support.

Free (LGPL) | Official Site

  • ? Qt WebKit (deprecated engine)
  • ? No longer actively maintained
  • ? Limited CSS3 support
  • Migration Guide

2.2 DinkToPdf

 

Free (MIT) | GitHub

  • ? .NET wrapper for wkhtmltopdf
  • ? Inherits wkhtmltopdf limitations
  • Migration Guide

Free/Commercial | Official Site

2.4 Rotativa

 

Free (MIT) | GitHub

Free (Apache 2.0) | GitHub

Free (MIT) | GitHub

3. Programmatic PDF Generation (Code-First)

 

Libraries for creating PDFs through code (shapes, text, images) rather than HTML rendering.

3.1 PDFSharp

 

Free (MIT) | Official Site

  • ? Mature, stable library
  • ? Good for programmatic generation
  • ? HTML support: CSS 2.0 only
  • ? Fails Bootstrap test
  • Migration Guide

3.2 MigraDoc

 

Free (MIT) | Official Site

3.3 QuestPDF

 

Free (MIT for most) | GitHub

  • ? Modern fluent API
  • ? Excellent documentation
  • ? Active development
  • ? Commercial license for companies >$1M revenue
  • Migration Guide

Free (AGPL) / Commercial | Official Site

4. Enterprise/Commercial Suites

 

Comprehensive commercial PDF solutions with extensive features and enterprise support.

Commercial ($1,199/year) | Official Site

Commercial ($395/month) | Official Site

  • ? Lower cost than Aspose
  • ? WebKit + Blink engines
  • ? WebKit version has limitations
  • Migration Guide

4.3 Spire.PDF

 

Free/Commercial | Official Site

4.4 pdfpig

 

Free (Apache 2.0) | GitHub

Free (Apache 2.0) | GitHub

Commercial | Official Site

Commercial | Official Site

4.8 ComPDFKit

 

Commercial | Official Site

Commercial | Official Site

4.10 GemBox.Pdf

 

Free/Commercial | Official Site

Free/Commercial | Official Site

4.12 ABCPDF

 

Commercial | Official Site

4.13 DynamicPDF

 

Commercial | Official Site

Commercial | Official Site

Commercial | Official Site

Commercial | Official Site

Commercial | Official Site

Commercial | Official Site

4.19 Foxit SDK

 

Commercial | Official Site

Enterprise | Official Site

5. API/SaaS PDF Services

 

Cloud-based PDF generation services accessed via API.

5.1 Gotenberg

 

Free (MIT) | GitHub

5.2 Api2pdf

 

SaaS | Official Site

SaaS | Official Site

5.4 PDFmyURL

 

SaaS | Official Site

5.5 GrabzIt

 

SaaS | Official Site

5.6 jsreport

 

Free/SaaS | Official Site

SaaS | Official Site

5.8 pdforge

 

SaaS | Official Site

5.9 PDFBolt

 

SaaS | Official Site

6. Reporting Engines

 

Business reporting tools with PDF export capabilities.

Commercial | Official Site

Free/Commercial | Official Site

Commercial | Official Site

Free (LGPL) | GitHub

6.5 SSRS

 

Free (Microsoft) | Official Site

7. Viewers/Renderers

 

Libraries focused on displaying PDFs rather than creating them.

Free | GitHub

Free (AGPL) / Commercial | Official Site

Free | GitHub

8. Printing/Specialized Utilities

 

Libraries for PDF printing, conversion, and specialized operations.

Commercial | Official Site

Free (AGPL) / Commercial | Official Site

8.3 RawPrint

 

Free | GitHub

Commercial | Official Site

Commercial | Official Site

9. Legacy/Deprecated

 

Abandoned or no longer maintained libraries (included for completeness).

9.1 HTMLDOC

 

Free (GPL) | Official Site

Commercial (Discontinued)

9.3 ActivePDF

 

Commercial | Official Site

10. Niche/Specialized

 

Libraries for specific use cases or experimental projects.

10.1 VectSharp

 

Free (GPL) | GitHub

10.2 PeachPDF

 

Free | GitHub

10.3 ZetPDF

 

Free | GitHub

Free (Apache 2.0) | GitHub

10.5 PrinceXML

 

Commercial | Official Site

10.6 PDFreactor

 

Commercial | Official Site

Commercial | Official Site

Free (GPL) | Official Site

Free (Apache 2.0) | Official Site

Feature Comparison Matrix

 

FeatureIronPDFPuppeteerSharpAspose.PDFiText7PDFSharpQuestPDF
Bootstrap Test?????N/A
Full Chromium?????N/A
HTML to PDF??? Limited? Limited? CSS 2.0?
PDF Manipulation??????
Cross-Platform??????
Free/Open Source???? AGPL?? Commercial
API Simplicity????????????????????
Documentation?????????????????????????
Active Development??????

Platform Support

 

LibraryWindowsLinuxmacOSDockerAzureAWS Lambda
IronPDF??????
PuppeteerSharp?????? Large
Playwright?????? Large
WebView2??????
Aspose.PDF??????
SelectPdf??????
iText7??????
PDFSharp??????
QuestPDF??????

Deployment Guides: Azure, Docker, AWS

Common Use Cases

Convert Modern Website to PDF

Requirement: Render responsive Bootstrap/Tailwind sites with Flexbox/Grid Best choice: IronPDF, PuppeteerSharp, Playwright Avoid: Aspose.PDF, iText7, PDFSharp

Generate Invoice/Report from Code

 

Requirement: Programmatic table/text layout Best choice: QuestPDF, MigraDoc, iText7 Also consider: IronPDF with HTML templates

? Fill PDF Forms

Requirement: Populate existing PDF forms Best choice: iText7, Aspose.PDF, IronPDF

Secure/Encrypt PDFs

Requirement: Password protection, permissions, digital signatures Best choice: IronPDF, iText7, Aspose.PDF

Business Reports

Requirement: Templated reports with charts Best choice: FastReport.NET, Telerik Reporting, SSRS

? Cloud/Serverless PDF Generation

 

Requirement: Minimal footprint, fast cold start Best choice: IronPDF, Api2pdf, Gotenberg Avoid: PuppeteerSharp (300MB+)

Pricing Comparison (November 2025)

 

LibraryFree TierCommercialEnterpriseNotes
IronPDF30-day trialFrom $749CustomPricing
PuppeteerSharp? UnlimitedApache 2.0
Playwright? UnlimitedApache 2.0
Aspose.PDFTrial only$1,199/yearCustomSource
SyncfusionTrial only$395-695/monthCustomSource
iText7AGPL onlyQuoteQuoteMust open source or buy
PDFSharp? UnlimitedMIT
QuestPDF<$1m revenue< td>License requiredCustomCommunity vs Pro
SelectPdf5 pagesFrom $499CustomPricing

Code Examples

3-Line HTML to PDF

// NuGet: Install-Package IronPdfvar pdf = ChromePdfRenderer.RenderUrlAsPdf("https://ironpdf.com/");pdf.SaveAs("output.pdf");

Merge Multiple PDFs

// NuGet: Install-Package IronPdfusing IronPdf;var merger = PdfDocument.Merge("doc1.pdf", "doc2.pdf", "doc3.pdf");merger.SaveAs("merged.pdf");

Add Password Protection

// NuGet: Install-Package IronPdfusing IronPdf;var pdf = PdfDocument.FromFile("input.pdf");pdf.Password = "secretpassword";pdf.SaveAs("secured.pdf");

HTML String to PDF

// NuGet: Install-Package IronPdfvar html = "

Hello World

Generated from HTML string

"
;var pdf = ChromePdfRenderer.RenderHtmlAsPdf(html);pdf.SaveAs("from-html.pdf");

More examples: IronPDF Examples

Migration Guides

Every library folder includes a migrate-from-{library}.md guide showing:

  • ? Package installation changes
  • ? API mapping table (old ? new)
  • ? Before/after code examples
  • ? Common gotchas and solutions

Example migration paths:

Verified Claims & Evidence

All competitor limitations are backed by evidence:

ClaimEvidenceStatus
Aspose.PDF no FlexboxForum thread? Verified
iText7 no JavaScriptOfficial KB? Verified
PDFSharp CSS 2.0 onlyOfficial docs? Verified
Syncfusion WebKit limitsOfficial documentation? Verified

Full fact-check report: Complete Project Summary

Related Resources

IronPDF Documentation

Community

Contributing

We welcome contributions! See CONTRIBUTING.md for:

  • Adding new libraries
  • Updating pricing/features
  • Fixing errors
  • Improving documentation
  • Sharing benchmarks

Quality standards:

  • ? Working code examples
  • ? Verified technical claims
  • ? Evidence links for limitations
  • ? Current pricing (as of date)

Related Awesome Lists

.NET Development

Programming Languages

PDF & Documentation

Related Topics

Resources

Learning C# PDF Development

PDF Specifications

HTML & CSS for PDF

Community & Support

Blogs & Articles

Tools & Utilities

About the Author

 

Jacob Mellor CTO, Iron Software Creator of IronPDF 41 years coding experience | 25 years building startups

Connect: LinkedIn | GitHub

License

 

This repository is licensed under CC0 1.0 Universal – dedicated to the public domain.

Code examples within library folders may have different licenses – see individual library documentation.

Disclaimer

 

This comparison is maintained by Iron Software and includes our product (IronPDF). However:

  • ? All claims are fact-checked and evidence-backed
  • ? Working code examples for every library
  • ? Honest assessments including when competitors excel
  • ? Open to corrections – submit PRs with evidence

Last verified: November 2025

Information contained on this page is provided by an independent third-party content provider. Frankly and this Site make no warranties or representations in connection therewith. If you are affiliated with this page and would like it removed please contact [email protected]