iText 7 & iTextSharp Alternative for .NET 8 & 10

Upgrade from legacy `PdfWriter` / `PdfDocument` stream boilerplate and paid add-on sprawl (`pdfHTML`, `pdfSweep`, `pdfCalligraph`) to a single modern .NET library with built-in themes, redaction, PKCS#12 signing, and PDF/A archival.

Feature iText 7 / 8 Ecosystem ShreePdf Engine
HTML & Markdown Parsing Requires separate `itext7.pdfhtml` add-on Built-in `Document.FromMarkdown()` & `Document.FromHtml()`
PII Text Redaction Requires commercial `pdfSweep` license Built-in Redaction + `Scrubkit` Integration
CJK / RTL Complex Script Shaping Requires commercial `pdfCalligraph` license Built-in International CJK & RTL Typography
PKCS#12 Digital Signatures + RFC 3161 TSA Complex BouncyCastle stream plumbing 1-Call `PdfSigner` + `TsaTimestampClient`
PDF/A-1b/2b/3b & ZUGFeRD e-Invoicing Complex low-level stream assembly Built-in `PdfArchivalProfile` & ZUGFeRD XML Embedder

Imperative Stream Boilerplate vs. ShreePdf Fluent Builder

iText 7 (Verbose Stream & Cell Setup) Legacy API
using iText.Kernel.Pdf; using iText.Layout; using iText.Layout.Element; using var writer = new PdfWriter("statement.pdf"); using var pdf = new PdfDocument(writer); using var document = new Document(pdf); document.Add(new Paragraph("Account Statement").SetBold().SetFontSize(18)); Table table = new Table(new float[] { 200, 100 }); table.AddHeaderCell("Transaction"); table.AddHeaderCell("Amount"); table.AddCell("Cloud Compute"); table.AddCell("$450.00"); document.Add(table);
ShreePdf (Modern Theme + Auto-Fit) Clean C# 12
using ShreePdf.Fluent; Document.Create("Account Statement") .WithTheme(ThemePresets.CorporateBlue) .AddHeading("Account Statement", level: 1) .AddTable(t => { t.Columns.Add(new TableColumn { Header = "Transaction", WidthRatio = 2 }); t.Columns.Add(new TableColumn { Header = "Amount", WidthRatio = 1 }); t.Rows.Add(new TableRow { Cells = { "Cloud Compute", "$450.00" } }); }) .Save("statement.pdf");

Modernize Your iText Codebase Today

One NuGet package (`ShreePdf`) replaces `itext7`, `pdfHTML`, `pdfSweep`, and `pdfCalligraph`.

Live Playground NuGet Package