Skip to main content

One post tagged with "itextsharp"

View All Tags

HTML to PDF in C# and .NET with iText 7: Complete Guide

· 15 min read
Michał Szymanowski
Michał Szymanowski
PDFBolt Co-Founder

Convert HTML to PDF using iText 7 in C#/.NET

Generating PDFs from HTML in C# applications is a common requirement for invoices, reports, and business documents. This guide walks you through iText 7 HTML to PDF conversion in .NET – the modern, redesigned successor to iTextSharp – combined with Razor templating for dynamic document generation. You'll set up the project from scratch, build a working invoice generator with precise layout control, and get ready-to-use code examples using iText 7's pdfhtml module.