![]() |
VOOZH | about |
dotnet add package QuestPDF --version 2026.6.0
NuGet\Install-Package QuestPDF -Version 2026.6.0
<PackageReference Include="QuestPDF" Version="2026.6.0" />
<PackageVersion Include="QuestPDF" Version="2026.6.0" />Directory.Packages.props
<PackageReference Include="QuestPDF" />Project file
paket add QuestPDF --version 2026.6.0
#r "nuget: QuestPDF, 2026.6.0"
#:package QuestPDF@2026.6.0
#addin nuget:?package=QuestPDF&version=2026.6.0Install as a Cake Addin
#tool nuget:?package=QuestPDF&version=2026.6.0Install as a Cake Tool
QuestPDF is a production-ready library that lets you design documents the way you design software: with clean, maintainable, strong-typed C# code. Stop fighting with HTML-to-PDF conversion. Build pixel-perfect reports, invoices, and exports using the language and tools you already love.
Learn how easy it is to design, implement and generate PDF documents using QuestPDF. Effortlessly create documents of all types such as invoices and reports.
using QuestPDF.Fluent;
using QuestPDF.Helpers;
using QuestPDF.Infrastructure;
// set your license here:
// QuestPDF.Settings.License = LicenseType.Community;
Document.Create(container =>
{
container.Page(page =>
{
page.Size(PageSizes.A4);
page.Margin(2, Unit.Centimetre);
page.PageColor(Colors.White);
page.DefaultTextStyle(x => x.FontSize(20));
page.Header()
.Text("Hello PDF!")
.SemiBold().FontSize(36).FontColor(Colors.Blue.Medium);
page.Content()
.PaddingVertical(1, Unit.Centimetre)
.Column(x =>
{
x.Spacing(20);
x.Item().Text(Placeholders.LoremIpsum());
x.Item().Image(Placeholders.Image(200, 100));
});
page.Footer()
.AlignCenter()
.Text(x =>
{
x.Span("Page ");
x.CurrentPageNumber();
});
});
})
.GeneratePdf("hello.pdf");
The code above produces the following PDF document:
👁 Preview of a PDF document showing the Hello World example
The library is free for individuals, non-profits, all FOSS projects, and organizations under $1M in annual revenue. Read more about licensing here
From layout and styling to production features, QuestPDF gives you the flexibility to create documents of any complexity.
👁 Explore All QuestPDF Features
Use your existing programming language and patterns to ship faster with less training.
Loops, conditionals, functions are natively supported. Leverage IntelliSense, inspections, navigation, and safe refactoring.
container.Column(column =>
{
column.Item().Text("Order Items").Bold();
if (Model.ShowSummary)
column.Item().Element(ComposeOrderSummary);
foreach (var item in Model.Items)
column.Item().Element(c => ComposeItem(c, item));
});
Review document changes like any other code. Get clean diffs, PR approvals, and traceable history.
void ComposeItem(IContainer container, OrderItem item)
{
container
.Border(1, Colors.Grey.Darken2)
.Background(item.HighlightColor)
- .Padding(12)
+ .Padding(16)
.Row(row =>
{
row.RelativeItem().Text(item.Name);
row.AutoItem().Text($"{item.Price:F2} USD");
});
}
Accelerate development with live document preview and hot-reload capability. See your changes instantly without recompiling.
👁 Screenshot showing the QuestPDF Companion App
👁 Learn about QuestPDF Companion App
Predictable Development — Eliminate CSS debugging, browser quirks, and layout surprises common with HTML-to-PDF tools. What you code is what you get.
Source-available - Entire QuestPDF source code is available for review and customization, ensuring transparency and compliance with your organization's requirements.
Complete Data Privacy - QuestPDF runs entirely within your infrastructure with no external API calls, internet requirement, or background data collection. As a company, we do not access, collect, store, or process your private data.
Comprehensive Layout Engine - A powerful layout engine built specifically for PDF generation. Gain full control over document structure, precise content positioning, and automatic pagination.
Advanced Language Support - Create multilingual documents with full RTL language support, advanced text shaping, and bi-directional layout handling.
High Performance - Generate thousands of pages per second while maintaining minimal CPU and memory usage. Perfect for high-throughput enterprise applications.
Optimized File Size - Drastically reduce file sizes without compromising quality. Benefit from automatic font subsetting, optimal image compression, and efficient file compression.
Leverage a powerful C# Fluent API to create, customize, and manage your PDF documents with ease.
DocumentOperation
.LoadFile("input.pdf")
.TakePages("1-10")
.MergeFile("appendix.pdf", "1-z") // all pages
.AddAttachment(new DocumentAttachment
{
FilePath = "metadata.xml"
})
.Encrypt(new Encryption256Bit
{
OwnerPassword = "mypassword",
AllowPrinting = true,
AllowContentExtraction = false
})
.Save("final-document.pdf");
👁 Learn Document Operation API
Deploy on any major operating system and integrate seamlessly with your favorite IDEs, cloud platforms, and development tools.
| Platform | Support |
|---|---|
| Operating Systems | Windows, Linux, macOS |
| Frameworks | .NET 6+ and .NET Framework 4.6.2+ |
| Cloud | Azure, AWS, Google Cloud, Others |
| Containers | Docker, Kubernetes |
| IDEs | Visual Studio, VS Code, JetBrains Rider, Others |
Generate PDF documents that meet the strictest archival and accessibility requirements. Every build is automatically validated using the open-source veraPDF and Mustang tools.
PDF/A (Archival):
PDF/A-2b, PDF/A-2u, PDF/A-2a, PDF/A-3b, PDF/A-3u, PDF/A-3aPDF/UA (Accessibility):
PDF/UA-1EN 16931 (E-Invoicing):
ZUGFeRD, Factur-XA model that benefits everyone. Commercial licensing provides businesses with legal safety and long-term stability, while funding a feature-complete, unrestricted library for the open-source community.
The library is free for individuals, non-profits, all FOSS projects, and organizations under $1M in annual revenue.
Follow our detailed tutorial and see how easy it is to generate a fully functional invoice with fewer than 250 lines of C# code.
👁 Preview of a PDF document being an output of the Real-World Invoice tutorial
👁 Read Real-world Invoice Tutorial
We are incredibly grateful to our .NET Community for their positive reviews and recommendations of the QuestPDF library. Your support and feedback are invaluable and motivate us to keep improving and expanding this project. Thank you for helping us grow and reach more developers!
👁 Nick Chapsas The Easiest Way to Create PDFs in .NET
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.0 net5.0 was computed. net5.0-windows net5.0-windows was computed. net6.0 net6.0 is compatible. net6.0-android net6.0-android was computed. net6.0-ios net6.0-ios was computed. net6.0-maccatalyst net6.0-maccatalyst was computed. net6.0-macos net6.0-macos was computed. net6.0-tvos net6.0-tvos was computed. net6.0-windows net6.0-windows was computed. net7.0 net7.0 was computed. net7.0-android net7.0-android was computed. net7.0-ios net7.0-ios was computed. net7.0-maccatalyst net7.0-maccatalyst was computed. net7.0-macos net7.0-macos was computed. net7.0-tvos net7.0-tvos was computed. net7.0-windows net7.0-windows was computed. net8.0 net8.0 is compatible. net8.0-android net8.0-android was computed. net8.0-browser net8.0-browser was computed. net8.0-ios net8.0-ios was computed. net8.0-maccatalyst net8.0-maccatalyst was computed. net8.0-macos net8.0-macos was computed. net8.0-tvos net8.0-tvos was computed. net8.0-windows net8.0-windows was computed. net9.0 net9.0 was computed. net9.0-android net9.0-android was computed. net9.0-browser net9.0-browser was computed. net9.0-ios net9.0-ios was computed. net9.0-maccatalyst net9.0-maccatalyst was computed. net9.0-macos net9.0-macos was computed. net9.0-tvos net9.0-tvos was computed. net9.0-windows net9.0-windows was computed. net10.0 net10.0 is compatible. net10.0-android net10.0-android was computed. net10.0-browser net10.0-browser was computed. net10.0-ios net10.0-ios was computed. net10.0-maccatalyst net10.0-maccatalyst was computed. net10.0-macos net10.0-macos was computed. net10.0-tvos net10.0-tvos was computed. net10.0-windows net10.0-windows was computed. |
| .NET Core | netcoreapp2.0 netcoreapp2.0 was computed. netcoreapp2.1 netcoreapp2.1 was computed. netcoreapp2.2 netcoreapp2.2 was computed. netcoreapp3.0 netcoreapp3.0 was computed. netcoreapp3.1 netcoreapp3.1 was computed. |
| .NET Standard | netstandard2.0 netstandard2.0 is compatible. netstandard2.1 netstandard2.1 was computed. |
| .NET Framework | net40 net40 is compatible. net403 net403 was computed. net45 net45 was computed. net451 net451 was computed. net452 net452 was computed. net46 net46 was computed. net461 net461 was computed. net462 net462 was computed. net463 net463 was computed. net47 net47 was computed. net471 net471 was computed. net472 net472 was computed. net48 net48 was computed. net481 net481 was computed. |
| MonoAndroid | monoandroid monoandroid was computed. |
| MonoMac | monomac monomac was computed. |
| MonoTouch | monotouch monotouch was computed. |
| Tizen | tizen40 tizen40 was computed. tizen60 tizen60 was computed. |
| Xamarin.iOS | xamarinios xamarinios was computed. |
| Xamarin.Mac | xamarinmac xamarinmac was computed. |
| Xamarin.TVOS | xamarintvos xamarintvos was computed. |
| Xamarin.WatchOS | xamarinwatchos xamarinwatchos was computed. |
Showing the top 5 NuGet packages that depend on QuestPDF:
| Package | Downloads |
|---|---|
|
Flexygo
Create your own Professional Solutions. Flexygo allows you to immediatly build incredible Solutions for companies, professionals and individuals. For easy installation visit https://docs.flexygo.com/ |
|
|
DH.QuestPDF
DH框架的Pdf处理库。基于https://github.com/QuestPDF/QuestPDF |
|
|
Cinegia
Gestiona de forma sencilla los trabajos realizados por tus técnicos en los distintos clientes. |
|
|
HTMLToQPDF
Relorer.QuestPDF.HTML is an extension for QuestPDF that allows to generate PDF from HTML |
|
|
AgentHub.Service.Financial.Domain.Shared
Package Description |
Showing the top 20 popular GitHub repositories that depend on QuestPDF:
| Repository | Stars |
|---|---|
|
Live-Charts/LiveCharts2
Beautiful, interactive charts, maps, and gauges. One API for every .NET UI framework.
|
|
|
ariacom/Seal-Report
Database Reporting Tool and Tasks (.Net)
|
|
|
ZeusAutomacao/DFe.NET
Biblioteca para Geração de NFe(2.0, 3.10 e 4.0) e NFCe(3.10 e 4.0) e consumo dos serviços necessários à sua manutenção, conforme descritos em http://www.nfe.fazenda.gov.br/portal/principal.aspx
|
|
|
Ozark-Connect/NetworkOptimizer
Self-hosted optimization, monitoring, and security audit tool for UniFi Networks. Includes Wi-Fi Optimizer for wireless health scoring and channel optimization, advanced DNS/VLAN/firewall security checks, config optimization suggestions, centralized WAN and LAN speed test server w/ L2 tracing, ONT, SFP, UniFi 5G modem stats, and more.
|
|
|
NickvisionApps/Denaro
Manage your personal finances
|
|
|
cmu-sei/GHOSTS
GHOSTS (General Human-Oriented Synthetic Teammates and Systems) is a realistic user simulation framework for cyber experimentation, simulation, training, and exercise
|
|
|
EvotecIT/OfficeIMO
Fast and easy to use cross-platform .NET library that creates or modifies Microsoft Word (DocX) and later also Excel (XLSX) files without installing any software. Library is based on Open XML SDK
|
|
|
YSGStudyHards/DotNetExercises
⚔【DotNetGuide专栏C#/.NET/.NET Core编程技巧练习集】C#/.NET/.NET Core编程常用语法、算法、技巧、中间件、类库、工作业务实操练习集,配套详细的文章教程和代码示例,助力快速掌握C#/.NET/.NET Core中各种编程常用语法、算法、技巧、中间件、类库、工作业务实操等等。
|
|
|
axzxs2001/Asp.NetCoreExperiment
原来所有项目都移动到**OleVersion**目录下进行保留。新的案例装以.net 5.0为主,一部分对以前案例进行升级,一部分将以前的工作经验总结出来,以供大家参考!
|
|
|
zy-zmc/tianming-novel-ai-writer
天命 — AI小说创作/写作系统 | 15维事实快照 · 12类变更声明 · 6道生成门禁 | 写到3000章依然连贯,不依赖上下文,不靠模型记忆,靠每章状态回写
|
|
| QuestPDF/QuestPDF-ExampleInvoice | |
|
zmrid/iMES-Factory
iMES工厂管家——您的新一代工厂助手。演示地址:https://imes.625sc.com。 一款基于.NetCore3.1和Vue3的MES管理系统。项目亮点:模版打印,Excel模版导出,自定义实体扩展,移动端精美设计,大屏设计等功能。
|
|
|
BoletoNet/BoletoNetCore
Versão do BoletoNet para .NET Core
|
|
|
Hercules-NET/ZeusFiscal
A Principal Biblioteca em C# para Emissão e Impressão de NFe, NFCe, MDF-e e CT-e
|
|
|
markjprice/apps-services-net8
Repository for the Packt Publishing book titled "Apps and Services with .NET 8" by Mark J. Price
|
|
|
kyoyama-kazusa/Sudoku
A sudoku solver using brute forces and logical techniques.
|
|
|
suxrobGM/logistics-app
AI-powered fleet management platform with an agentic dispatcher that autonomously matches loads to trucks, ensures HOS compliance, and optimizes routes. Built for trucking companies.
|
|
|
bingbing-gui/dotnet-agent-playbook
一个面向 .NET + AI Agent 开发的实践型仓库,涵盖 Web、云原生与微服务场景,聚焦智能应用的工程化落地。
|
|
|
KamiYomu/KamiYomu
A self-hosted, extensible manga reader and download tool with plug-in support.
|
|
|
Relorer/HTMLToQPDF
HTMLToQPDF is an extension for QuestPDF that allows to generate PDF from HTML
|
| Version | Downloads | Last Updated |
|---|---|---|
| 2026.6.0 | 42,589 | 6/10/2026 |
| 2026.5.0 | 396,500 | 5/9/2026 |
| 2026.2.4 | 969,143 | 3/20/2026 |
| 2026.2.3 | 322,319 | 3/5/2026 |
| 2026.2.3-alpha | 177 | 3/5/2026 |
| 2026.2.2 | 116,177 | 2/25/2026 |
| 2026.2.1 | 165,287 | 2/17/2026 |
| 2026.2.0 | 56,667 | 2/13/2026 |
| 2025.12.4 | 245,578 | 2/6/2026 |
| 2025.12.3.1-alpha2 | 7,608 | 1/18/2026 |
| 2025.12.3.1-alpha | 195 | 1/17/2026 |
| 2025.12.3 | 461,513 | 1/16/2026 |
| 2025.12.2 | 58,624 | 1/12/2026 |
| 2025.12.1 | 390,339 | 12/25/2025 |
| 2025.12.0 | 238,152 | 12/12/2025 |
| 2025.12.0-alpha4 | 14,648 | 11/7/2025 |
| 2025.12.0-alpha3 | 2,008 | 10/31/2025 |
| 2025.12.0-alpha2 | 4,561 | 10/8/2025 |
| 2025.7.4 | 678,991 | 11/3/2025 |
| 2025.7.3 | 350,710 | 10/14/2025 |
- Substantially revised the QuestPDF legal documents to better support enterprise procurement and compliance requirements and to define usage terms more clearly.
- Introduced native support for Windows ARM64 (win-arm64) environments.
- Improved compatibility with older Linux distributions (glibc 2.28 and newer).
- Reduced the NuGet package size by optimizing native dependencies.
- Renamed the `TranslateX` / `TranslateY` methods to `OffsetX` / `OffsetY` to improve discoverability.
- SVG rendering improvements:
- Prevented zero-width strokes from being rendered as hairlines, aligning behavior with the SVG specification.
- Added support for embedded Base64 images that use the modern `href` attribute instead of `xlink:href`.
- Added support for the `#RGBA` and `#RRGGBBAA` color formats.
- Added support for the `transparent` named color.
- Fixed PDF bookmark titles so they include only text from the associated paragraph, excluding the alternative text of images.
- Fixed SectionLink behaving incorrectly when target Section is placed in page header.
- Updated the Skia native dependency to version m149.
- Updated the qpdf native dependency to version 12.3.2.
- Modernized the build system for native dependencies, including how QuestPDF-specific patches are applied.
- Updated all GitHub Actions workflows to use standard runners, reducing costs and making it easier for everyone to contribute to the project.