NetPdf
Create, view, and manage PDF files in .NET with one fluent API.
NetPdf (published on NuGet as NetPdfKit) wraps battle-tested, permissively-licensed libraries — PDFsharp, PdfPig, PDFtoImage, ZXing.Net, and Svg.Skia — behind a single coherent document model. It targets net8.0, net9.0, and net10.0 and works on Windows, macOS, and Linux.
Install
dotnet add package NetPdfKit
Hello, PDF
using NetPdf;
PdfFile.Create()
.WithMetadata(m => m.Title("Report").Author("Me"))
.AddPage(page => page
.AddText("Hello, world", x: 50, y: 50, o => o.FontSize(24).Bold()))
.Save("report.pdf");
Where to go next
- Getting started — install and create your first PDF
- Fluent layout — auto-paginated documents, tables, rich text, lists
- Reading PDFs — text and image extraction, metadata
- Managing PDFs — merge, split, overlay, attachments, encryption
- Digital signing — sign and verify with X.509 certificates
- Compliance — PDF/A, tagged (accessible) PDF, XMP, right-to-left text
- Rendering — render pages to PNG images
- Architecture — how the pieces fit together
- API Reference — generated from the source XML documentation