CreatePdf.NET is a simple, fast PDF creation library for .NET applications. Generate PDF documents with text rendering, bitmap graphics, and optional OCR text extraction. Lightweight, dependency-free, 100% test coverage. Perfect for creating reports, invoices, receipts, labels, and documents. Supports .NET 10, .NET 9, and .NET 8 with fluent C# API.
$ dotnet add package CreatePdf.NETA simple, .NET library for PDF creation with text and bitmap rendering.
using CreatePdf.NET;
await Pdf.Create(Dye.Black)
.AddText("Hello World")
.SaveAsync("text.pdf");
await Pdf.Create()
.AddPixelText("Hello World")
.SaveAsync("pixel.pdf");
await Pdf.Create()
.AddText("Hello World!", color: Dye.Blue, size: TextSize.Large)
.AddLine()
.SaveAndOpenAsync("opens-the-pdf.pdf");
await Pdf.Create(Dye.White)
.AddPixelText("Hello World!", textColor: Dye.Red, backgroundColor: Dye.Brown, size: PixelTextSize.Medium)
.AddLines(5)
.SaveAndShowDirectoryAsync("opens-the-directory.pdf");
dotnet add package CreatePdf.NET
This project is licensed under the MIT License.