QuestPDF 2025.12.0-alpha0

QuestPDF - Modern PDF library for C# developers

Generate and manipulate PDF documents in your .NET applications using the open-source QuestPDF library and its C# Fluent API.

QuestPDF Homepage QuestPDF License GitHub Stars and Stargazers Nuget package download

Quick Start

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.

Learn Quick Start tutorial

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");

Simple PDF generated implemented in C# and generated with the QuestPDF library

Code-Focused Paradigm

Modular and Maintainable C# Code

Implement modular PDF layouts with reusable well-organized classes and methods. Refactor safely with IntelliSense - your logic stays seamlessly integrated with your domain code.

Familiar Programming Concepts

Use conditions, loops, LINQ, and extension methods to effortlessly generate dynamic, data-driven PDF documents tailored to your unique business needs.

Git-Friendly Workflow

Enjoy straightforward C# code reviews, meaningful pull-request diffs, and cleaner version control histories.

.Column(column =>
{
    if (Model.Comments != null)
        column.Item().Text(Model.Comments);

    foreach(var item in Model.Items)
       column.Item().Element(c => CreateItem(c, item);
});
void CreateItem(IContainer container, Item item)
{
    container
-       .Background(Colors.Grey.Lighten2)
+       .Background(item.Color)
        .Padding(10)
        .Text(item.Text);
}

Companion App

Accelerate your development with live document preview powered by the hot-reload capability, eliminating the need for C# code recompilation.

  • Explore PDF document structure and hierarchy
  • Quickly magnify and measure content
  • Debug runtime exceptions with stack traces and code snippets
  • Identify, understand and solve layout errors

Learn about QuestPDF Companion App

QuestPDF Companion App helping .NET developers work more efficiently with C# implementation of the PDF document

Exactly what you need

Comprehensive Layout Engine

A powerful layout engine built specifically for PDF generation. Gain full control over document structure, precise content positioning, and automatic pagination for complex reports and invoices.

Rich Toolkit

Accelerate your PDF development workflow with a rich set of reusable components and over 50 layout elements. Easily implement data-driven documents using a Fluent C# API.

High Performance

Generate PDF files at scale with up to thousands of pages per second - while maintaining minimal CPU and memory usage. Perfect for high-throughput .NET applications.

Advanced Language Support

Create multilingual PDF documents with full support for right-to-left (RTL) languages, advanced text shaping, and bi-directional layout handling.

Perform common PDF operations

Leverage a powerful C# Fluent API to create, customize, and manage your PDF documents with ease.

  • Merge documents
  • Attach files
  • Extract pages
  • Encrypt / decrypt
  • Extend metadata – Limit access
  • Optimize for Web
  • Overlay / underlay
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

Multiplatform

Supports all major operating systems and works seamlessly with leading IDEs, cloud platforms, and modern development tools.

  • Technologies: modern dotnet, legacy .NET Framework, Docker
  • Operating systems: Windows, Linux, MacOS
  • Cloud providers: Azure, AWS, Google Cloud
  • IDE: Visual Studio, Visual Code, JetBrains Rider, others

Fair and Sustainable License

By offering free access to most users and premium licenses for larger organizations, the project maintains its commitment to excellence:

  • Long-term and sustainable development
  • Regular feature, performance, quality and security updates
  • Active community and enterprise support

Free for individuals, non-profits, and businesses under $1M in annual revenue, as well as all FOSS projects.

QuestPDF License and Pricing

Let's get started

Follow our detailed tutorial, and see how easy it is to generate a fully functional invoice with fewer than 250 lines of C# code.

Read getting started tutorial

Invoice PDF document created in the Getting Started tutorial of the QuestPDF library

No packages depend on QuestPDF.

2025.12.0-alpha0:

  • Added initial support for semantic tagging and bookmarks.

.NET 6.0

  • No dependencies.

.NET 8.0

  • No dependencies.

.NET Standard 2.0

Version Downloads Last updated
2026.6.1 10 06/25/2026
2026.6.0 13 06/10/2026
2026.5.0 19 05/14/2026
2026.2.4 10 05/14/2026
2026.2.3 13 05/14/2026
2026.2.3-alpha 18 05/14/2026
2026.2.2 20 05/14/2026
2026.2.1 17 05/14/2026
2026.2.0 17 05/14/2026
2025.12.4 11 05/14/2026
2025.12.3.1-alpha2 18 05/14/2026
2025.12.3.1-alpha 13 05/14/2026
2025.12.3 17 05/14/2026
2025.12.2 18 05/14/2026
2025.12.1 17 05/14/2026
2025.12.0 16 05/14/2026
2025.12.0-alpha4 18 05/14/2026
2025.12.0-alpha3 12 05/14/2026
2025.12.0-alpha2 17 05/14/2026
2025.12.0-alpha1 16 05/14/2026
2025.12.0-alpha0 17 05/14/2026
2025.7.4 16 05/14/2026
2025.7.3 22 05/14/2026
2025.7.2 19 05/14/2026
2025.7.1 26 05/10/2026
2025.7.0 15 05/14/2026
2025.6.0-rc0 17 05/14/2026
2025.5.1 15 05/14/2026
2025.5.0 14 05/14/2026
2025.4.4 18 05/14/2026
2025.4.3 16 05/14/2026
2025.4.2 15 05/14/2026
2025.4.1 16 05/14/2026
2025.4.0 15 05/14/2026
2025.1.7 18 05/14/2026
2025.1.6 12 05/14/2026
2025.1.5 12 05/14/2026
2025.1.4 15 05/14/2026
2025.1.3 26 05/14/2026
2025.1.2 17 05/14/2026
2025.1.1 16 05/14/2026
2025.1.0 17 05/14/2026
2025.1.0-rc0 16 05/14/2026
2025.1.0-alpha0 16 05/14/2026
2024.12.3 19 05/14/2026
2024.12.2 12 05/14/2026
2024.12.1 11 05/14/2026
2024.12.0 20 05/14/2026
2024.12.0-rc3 13 05/14/2026
2024.12.0-rc2 16 05/14/2026
2024.12.0-rc1 13 05/14/2026
2024.12.0-rc0 20 05/14/2026
2024.10.4 15 05/14/2026
2024.10.3 17 05/14/2026
2024.10.2 15 05/14/2026
2024.10.1 13 05/14/2026
2024.10.0 16 05/14/2026
2024.10.0-rc4 17 05/14/2026
2024.10.0-rc3 18 05/14/2026
2024.10.0-rc2 18 05/14/2026
2024.10.0-rc1 12 05/14/2026
2024.10.0-rc0 17 05/14/2026
2024.7.3 18 05/14/2026
2024.7.2 13 05/14/2026
2024.7.1 18 05/14/2026
2024.7.0 11 05/14/2026
2024.7.0-rc0 18 05/14/2026
2024.6.4 18 05/14/2026
2024.6.3 18 05/14/2026
2024.6.2 16 05/14/2026
2024.6.1 18 05/14/2026
2024.6.0 15 05/14/2026
2024.3.10 17 05/14/2026
2024.3.9 15 05/14/2026
2024.3.8 14 05/14/2026
2024.3.7 14 05/14/2026
2024.3.6 19 05/14/2026
2024.3.5 15 05/14/2026
2024.3.4 18 05/14/2026
2024.3.3 11 05/14/2026
2024.3.2 16 05/14/2026
2024.3.1 18 05/14/2026
2024.3.0 19 05/14/2026
2024.3.0-rc2 16 05/14/2026
2024.3.0-rc1 12 05/14/2026
2024.3.0-rc 17 05/14/2026
2024.3.0-beta1 15 05/14/2026
2024.3.0-beta 17 05/14/2026
2024.3.0-alpha 17 05/14/2026
2023.12.6 17 05/13/2026
2023.12.5 14 05/13/2026
2023.12.4 20 05/13/2026
2023.12.3 18 05/13/2026
2023.12.2 16 05/13/2026
2023.12.1 13 05/13/2026
2023.12.0 15 05/13/2026
2023.10.2 17 05/13/2026
2023.10.1 17 05/13/2026
2023.10.0 15 05/13/2026
2023.10.0-alpha0 19 05/13/2026
2023.9.1 12 05/14/2026
2023.9.0 16 05/14/2026
2023.6.3 18 05/13/2026
2023.6.2 12 05/13/2026
2023.6.1 14 05/13/2026
2023.6.0 12 05/13/2026
2023.5.3 13 05/13/2026
2023.5.2 19 05/13/2026
2023.5.1 17 05/13/2026
2023.5.0 15 05/13/2026
2023.4.2 21 05/13/2026
2023.4.1 19 05/13/2026
2023.4.0 15 05/13/2026
2022.12.15 18 05/13/2026
2022.12.14 12 05/13/2026
2022.12.13 16 05/13/2026
2022.12.12 19 05/13/2026
2022.12.11 18 05/13/2026
2022.12.10 20 05/13/2026
2022.12.9 18 05/13/2026
2022.12.8 17 05/13/2026
2022.12.7 18 05/13/2026
2022.12.6 15 05/13/2026
2022.12.5 20 05/13/2026
2022.12.4 17 05/13/2026
2022.12.3 14 05/13/2026
2022.12.2 13 05/13/2026
2022.12.1 16 05/13/2026
2022.12.0 19 05/13/2026
2022.11.0 14 05/13/2026
2022.11.0-alpha1 20 05/13/2026
2022.11.0-alpha0 22 05/13/2026
2022.9.1 16 05/13/2026
2022.9.0 18 05/13/2026
2022.9.0-alpha1 21 05/13/2026
2022.8.2 17 05/13/2026
2022.8.1 17 05/13/2026
2022.8.0 17 05/13/2026
2022.6.3 15 05/13/2026
2022.6.2 17 05/13/2026
2022.6.1 17 05/13/2026
2022.6.0 13 05/13/2026
2022.6.0-prerelease 15 05/13/2026
2022.5.0 18 05/13/2026
2022.4.1 17 05/13/2026
2022.4.0 17 05/13/2026
2022.4.0-alpha1 15 05/13/2026
2022.4.0-alpha0 18 05/13/2026
2022.3.1 15 05/13/2026
2022.3.0 11 05/13/2026
2022.2.7 18 05/13/2026
2022.2.6 18 05/13/2026
2022.2.5 17 05/13/2026
2022.2.4 17 05/13/2026
2022.2.3 16 05/13/2026
2022.2.2 17 05/13/2026
2022.2.1 17 05/13/2026
2022.2.0 17 05/13/2026
2022.2.0-beta1 17 05/13/2026
2022.1.0 13 05/13/2026
2022.1.0-beta5 16 05/13/2026
2022.1.0-beta4 18 05/13/2026
2022.1.0-beta3 19 05/13/2026
2022.1.0-beta2 18 05/13/2026
2022.1.0-beta1 12 05/13/2026
2022.1.0-beta0 16 05/13/2026
2022.1.0-alpha0 14 05/13/2026
2021.12.0 16 05/13/2026
2021.12.0-alpha1 13 05/13/2026
2021.12.0-alpha0 18 05/13/2026
2021.11.4 17 05/13/2026
2021.11.3 16 05/13/2026
2021.11.0-beta3 17 05/13/2026
2021.11.0-beta2 19 05/13/2026
2021.11.0-beta 20 05/13/2026
2021.10.1 11 05/13/2026
2021.10.0 20 05/13/2026
2021.10.0-beta.2 21 05/13/2026
2021.10.0-beta 19 05/13/2026
2021.9.3 14 05/13/2026
2021.9.2 17 05/13/2026
2021.9.1 15 05/13/2026
2021.9.0 14 05/13/2026
2021.8.0 18 05/13/2026
2021.5.2 16 05/13/2026
2021.4.0 13 05/13/2026
2021.3.1 17 05/13/2026
2021.3.0 20 05/13/2026
2021.2.0 12 05/13/2026
2021.1.0 18 05/13/2026
2020.11.0 13 05/13/2026