Skip to main content

21 posts tagged with "html to pdf"

View All Tags

Top PDF Generation Libraries for C# and .NET in 2025

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

Best C# Libraries for PDF Generation

The .NET ecosystem offers a rich variety of libraries for PDF generation in 2025. Whether you need to create documents from scratch, convert HTML to PDF, or generate reports with complex layouts, C# developers have multiple robust options. This article explores the most popular and powerful PDF libraries available for C# and .NET, providing download statistics, key features, installation guides, and practical code examples to help you choose the right tool for your project.

How to Convert HTML to PDF in C# and .NET Using DinkToPdf

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

Guide to generating PDF from HTML using DinkToPdf in C#/.NET

If you need a reliable solution to convert HTML to PDF in C# and .NET, this comprehensive guide walks you through using DinkToPdf, a powerful .NET wrapper for the popular wkhtmltopdf library, to generate high-quality PDFs from HTML content. Whether you're creating invoices, reports, or any document requiring pixel-perfect PDF output, DinkToPdf offers an efficient way to transform your HTML and CSS into professional PDFs with minimal setup. This step-by-step tutorial will help you implement a complete HTML to PDF conversion system in your .NET application.

PDF Generation in C#/.NET Using QuestPDF

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

Professional PDF document generation with QuestPDF library in C#/.NET

PDF document generation has long been a necessary but often frustrating aspect of .NET development. Traditional approaches frequently require developers to manage absolute positioning, manual pagination, and complex styling calculations. QuestPDF takes a revolutionary approach to this challenge by providing a layout-based system with an intuitive fluent API that feels natural to C# developers. This comprehensive guide demonstrates how QuestPDF transforms PDF generation from a tedious task into a streamlined, maintainable process through its modern design philosophy and powerful layout engine.

How to Generate PDF in C#/.NET with PDFsharp

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

Generate PDF with PDFsharp library in C#/.NET

For .NET developers, the ability to programmatically generate and modify PDFs is an essential capability for many business applications. PDFsharp is a powerful .NET library that makes creating complex, multi-page documents straightforward and accessible. This comprehensive guide will walk you through everything you need to know about generating PDFs using PDFsharp in C# and .NET applications.

How to Generate PDF from HTML Using Playwright in C# and .NET

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

Generate PDF from HTML using Playwright in C#/.NET

This detailed guide shows you how to use Microsoft Playwright for .NET and C# to generate high-quality PDFs with perfect rendering. Learn how to implement a complete solution that combines Scriban templates with Playwright's powerful browser automation to create pixel-perfect documents. Whether you're building invoices, reports, or any business documents, this step-by-step tutorial provides all the code and explanation you need to integrate PDF generation into your C#-based .NET applications.

HTML to PDF in C#/.NET with iText 7

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

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

Need to generate professional PDFs from HTML in C# applications? This comprehensive guide shows you how to implement iText 7 for .NET – the modern, redesigned successor to iTextSharp – with Razor templating for dynamic document generation. Learn to create pixel-perfect invoices, reports, and business documents with precise layout control, leveraging iText 7's clean API and powerful HTML to PDF conversion capabilities through practical, ready-to-use code examples.

How to Convert HTML to PDF in C# and .NET Using PuppeteerSharp

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

Guide to generating PDF from HTML using PuppeteerSharp in C#/.NET

Looking for a reliable way to convert HTML to PDF in C# and .NET? This guide will show you how to use PuppeteerSharp, the powerful .NET port of the Node.js Puppeteer library, to generate high-quality PDFs from dynamic HTML content. Whether you're building invoices, reports, or print-ready web pages, PuppeteerSharp gives you full control over headless Chromium rendering, enabling pixel-perfect PDF output using modern HTML and CSS. We’ll walk you through setting up a C#/.NET project, using a template engine for dynamic content, and exporting a professional invoice PDF as the final result.

Generating Accessible PDFs: How to Create WCAG-Compliant Documents

· 17 min read
Milena Szymanowska
Milena Szymanowska
PDFBolt Co-Founder

Accessible PDF documents that comply with WCAG standards

Creating accessible PDF documents isn't just a best practice – it's increasingly a legal requirement across industries. While PDFs remain the standard format for sharing official documents, they often create significant barriers for users with disabilities. This comprehensive guide will walk you through the process of creating WCAG-compliant PDF documents that work for everyone, regardless of ability.

Optimizing HTML for Professional PDF Output

· 21 min read
Milena Szymanowska
Milena Szymanowska
PDFBolt Co-Founder

Optimizing HTML for Perfect PDF Conversion

In today's digital age, PDF documents remain essential for preserving formatting across different devices and platforms. However, converting HTML to PDF can be challenging, with inconsistencies in layout, styling issues, and performance problems frequently arising. This comprehensive guide explores best practices for structuring and optimizing your HTML to achieve flawless PDF conversion results.

Top HTML Template Engines

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

HTML to PDF - Template Engines

In the world of modern web development, creating dynamic, data-driven websites efficiently is a constant challenge. Template engines have emerged as a crucial tool in a developer's toolkit, streamlining the process of generating HTML content dynamically. This article explores what template engines are, how they work, their benefits, and the most popular options available today.