Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Generate and edit PDF documents in your .NET applications using the open-source QuestPDF library and its C# Fluent API. Build invoices, reports and data exports with ease.

License

Notifications You must be signed in to change notification settings

QuestPDF/QuestPDF

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

QuestPDF.Getting.Started.mp4



Please help by giving a star ⭐

GitHub stars guide developers toward great tools. If you find this project valuable, please give it a star – it helps the community and takes just a second!


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



QuestPDF 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



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



Cummunity QuestPDF

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

Nick Chapsas The Easiest Way to Create PDFs in .NET

Claudio Bernasconi: QuestPDF - The BEST PDF Generator for .NET?!

Claudio Bernasconi QuestPDF - The BEST PDF Generator for .NET?!

JetBrains: OSS Power-Ups: QuestPDF

JetBrains OSS Power-Ups: QuestPDF

Programming with Felipe Gavilan: Generating PDFs with C# - Very Easy (two examples)

Felipe Gavilan Generating PDFs with C# - Very Easy (two examples)

Learning materials

  • PDF Generation using QuestPDF in ASP.NET Core written by Olufemi Oyedepo: Part 1 Part 2

About

Generate and edit PDF documents in your .NET applications using the open-source QuestPDF library and its C# Fluent API. Build invoices, reports and data exports with ease.

Topics

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Sponsor this project

 

Languages