QuestPDF 2025.1.7
Prefix ReservedSee the version list below for details.
dotnet add package QuestPDF --version 2025.1.7
NuGet\Install-Package QuestPDF -Version 2025.1.7
<PackageReference Include="QuestPDF" Version="2025.1.7" />
<PackageVersion Include="QuestPDF" Version="2025.1.7" />
<PackageReference Include="QuestPDF" />
paket add QuestPDF --version 2025.1.7
#r "nuget: QuestPDF, 2025.1.7"
#:package QuestPDF@2025.1.7
#addin nuget:?package=QuestPDF&version=2025.1.7
#tool nuget:?package=QuestPDF&version=2025.1.7
QuestPDF is a modern open-source .NET library for PDF document generation. Offering comprehensive layout engine powered by concise and discoverable C# Fluent API. Easily generate PDF documents, reports, invoices, exports etc.

👨💻 Design PDF documents using C# and employ a code-only approach. Utilize your version control system to its fullest potential.
🧱 Compose PDF document with a range of powerful and predictable structural elements, such as text, image, border, table, and many more.
⚙️ Utilize a comprehensive layout engine, specifically designed for PDF document generation and paging support.
📖 Write code using concise and easy-to-understand C# Fluent API. Utilize IntelliSense to quickly discover available options.
🔗 Don't be limited to any proprietary scripting language or format. Follow your experience and leverage all modern C# features.
⌛ Save time thanks to a hot-reload capability, allowing real-time PDF document preview without code recompilation.
Simplicity is the key
How easy it is to start and prototype with QuestPDF? Really easy thanks to its minimal API! Please analyse the code below that generates basic PDF document:
using QuestPDF.Fluent;
using QuestPDF.Helpers;
using QuestPDF.Infrastructure;
// code in your main method
Document.Create(container =>
{
container.Page(page =>
{
page.Size(PageSizes.A4);
page.Margin(2, Unit.Centimetre);
page.Background(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");

Let's get started
Begin exploring the QuestPDF library today. You are 250 lines of C# code away from creating a fully functional PDF invoice implementation.
Read the Getting Started tutorial to familiarize yourself with general library architecture, important layout structures as well as to better understand helpful patterns and practices.
Easily start designing your PDF documents, reports, invoices, exports and even more.

| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.0 was computed. net5.0-windows was computed. net6.0 is compatible. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
| .NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
| .NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
| .NET Framework | net40 is compatible. net403 was computed. net45 was computed. net451 was computed. net452 was computed. net46 was computed. net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
| MonoAndroid | monoandroid was computed. |
| MonoMac | monomac was computed. |
| MonoTouch | monotouch was computed. |
| Tizen | tizen40 was computed. tizen60 was computed. |
| Xamarin.iOS | xamarinios was computed. |
| Xamarin.Mac | xamarinmac was computed. |
| Xamarin.TVOS | xamarintvos was computed. |
| Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETStandard 2.0
- No dependencies.
-
net6.0
- No dependencies.
-
net8.0
- No dependencies.
NuGet packages (166)
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/ |
|
|
TinWeb
Provides common features for a Web Application. |
|
|
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 |
GitHub repositories (23)
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)
|
|
|
Ozark-Connect/NetworkOptimizer
Self-hosted optimization, monitoring (NMS), 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, CM, ONT, SFP, 5G modem stats +more.
|
|
|
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
|
|
|
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
|
|
|
ZL154/JellyfinSecurity
A Jellyfin plugin that adds native two-factor authentication (TOTP, email OTP) with trusted device tokens, TV device pairing, LAN bypass, and API key bypass. Server-side enforcement — works with all clients including web, mobile, TV, and service integrations like Sonarr/Radarr.
|
|
|
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.
|
|
|
kyoyama-kazusa/Sudoku
A sudoku solver using brute forces and logical techniques.
|
|
|
markjprice/apps-services-net8
Repository for the Packt Publishing book titled "Apps and Services with .NET 8" by Mark J. Price
|
|
|
bingbing-gui/dotnet-agent-playbook
一个面向 .NET + AI Agent 开发的实践型仓库,涵盖 Web、云原生与微服务场景,聚焦智能应用的工程化落地。
|
|
|
KamiYomu/KamiYomu
A self-hosted, extensible manga reader and download tool with plug-in support.
|
| Version | Downloads | Last Updated |
|---|---|---|
| 2026.7.1 | 13,621 | 7/11/2026 |
| 2026.7.0 | 48,937 | 7/5/2026 |
| 2026.6.1 | 108,912 | 6/25/2026 |
| 2026.6.0 | 227,243 | 6/10/2026 |
| 2026.5.0 | 611,737 | 5/9/2026 |
| 2026.2.4 | 1,212,988 | 3/20/2026 |
| 2026.2.3 | 373,910 | 3/5/2026 |
| 2026.2.3-alpha | 185 | 3/5/2026 |
| 2026.2.2 | 136,154 | 2/25/2026 |
| 2026.2.1 | 186,401 | 2/17/2026 |
| 2026.2.0 | 65,254 | 2/13/2026 |
| 2025.12.4 | 289,513 | 2/6/2026 |
| 2025.12.3.1-alpha2 | 8,278 | 1/18/2026 |
| 2025.12.3.1-alpha | 200 | 1/17/2026 |
| 2025.12.3 | 526,617 | 1/16/2026 |
| 2025.12.2 | 63,591 | 1/12/2026 |
| 2025.12.1 | 435,743 | 12/25/2025 |
| 2025.12.0 | 266,788 | 12/12/2025 |
| 2025.12.0-alpha4 | 16,505 | 11/7/2025 |
| 2025.1.7 | 260,570 | 3/21/2025 |
Version 2025.1.0
- Implemented a Lazy element that delays content creation to reduce memory usage and enhance garbage collection efficiency in large documents.
- Optimization: releasing native objects as early as possible to reduce peak memory usage,
- Various performance and memory optimizations,
- Increased maximum level of parallelism from 2 to 4.
Version 2025.1.1
- Fixed rarely broken text alignment caused by too aggressive cache optimization.
Version 2025.1.2
- Adjusted the behavior of Row.AutoItem to preserve its size when a Row element spans multiple pages.
- Improved Linux compatibility by including the necessary native dependencies (OpenSSL and libjpeg-turbo).
Version 2025.1.3
- Fixed a rare layout rendering bug in the Table element.
- Improved memory management for Shared Image API by adjusting GC Memory Pressure.
- Fixed a bug in the DocumentOperation.AddAttachment method that incorrectly detected the file's MIME type when it was not explicitly provided.
- Added a new Placeholders.WebpageUrl() method.
Version 2025.1.4
- Added support for creating empty containers that can be injected into the document, significantly enhancing component extensibility.
- Added new element: PreventPageBreak.
- Updated in-code links to documentation to reflect recent changes.
- Fixed: AspectRatio element rarely positioned its content incorrectly.
- Fixed: The Row element incorrectly calculated the size of AutoItem when it contained text representing page numbers
- Fixed: Paragraph spacing was not applied when a span contained only a newline.
Version 2025.1.5
- Fixed: EnsureSpace did not render its content in some cases.
Version 2025.1.6
- Likely fixed a memory leak related to layout calculation caching by adjusting how Skia objects are used,
- Optimized memory usage by disposing native objects as early as possible in many rare scenarios, such as when an exception is thrown during generation,
- Improved caching algorithm accuracy,
- Updated skia native dependency to version 134,
- Updated qpdf native dependency to version 11.10.1,
- Updated OpenSSL native dependency to version 3.4.1.
Version 2025.1.7
- Enhanced Layout Issue Debugging Algorithm,
- Fixed a memory leak related to rendering text elements with page numbers,
- Added finalizer warnings to various classes to help prevent memory leaks in the future,
- Optimized memory management for native objects across multiple areas,
- Adjusted the QPDF implementation to reliably handle non-ASCII content using a UTF-8 marshaler,
- Improved cross-platform compatibility by including required dependencies for macOS,
- Fixed: the Line element was rendered in an incorrect position.