Skip to main content

33 posts tagged with "html to pdf"

View All Tags

HTML to PDF in Java with Playwright and Thymeleaf

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

HTML to PDF with Playwright in Java

Need to convert HTML to PDF in your Java project? This tutorial shows you how to use Playwright for Java together with Thymeleaf templates to generate clean, well-formatted PDFs. We'll build an invoice generator that renders HTML to PDF using a headless Chromium browser, with full CSS and JavaScript support. The code examples are ready to copy and adapt for your own HTML to PDF generation in Java.

OpenPDF in Java: How to Generate Professional PDF Documents

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

Generate PDFs with OpenPDF in Java

Programmatic PDF generation is a common requirement for Java applications that produce invoices, reports, or contracts. OpenPDF, a lightweight and open-source PDF library derived from iText, provides a free solution for creating these documents in Java. In this step-by-step guide, we'll build a PDF invoice generator using OpenPDF as a practical example you can adapt to your own projects.

Top C# and .NET PDF Generation Libraries Compared

· 15 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. From creating documents from scratch to converting HTML to PDF or generating reports with complex layouts, C# developers have several proven options to pick from. This article covers the most popular PDF libraries available for C# and .NET, with download statistics, key features, installation guides, and practical code examples to help you choose the right tool for your project.

Convert HTML to PDF in C# and .NET with DinkToPdf

· 14 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 way to convert HTML to PDF in C# and .NET, this guide walks you through using DinkToPdf, a .NET wrapper for the wkhtmltopdf library, to generate PDFs from HTML content. DinkToPdf can handle invoices, reports, and other documents that need consistent PDF output. This step-by-step tutorial covers setting up a complete HTML to PDF conversion system in your .NET application, from project scaffolding to a finished invoice generator.

Generate PDFs in C# Using QuestPDF: Complete Guide

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

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

PDF generation in .NET has always been a bit of a pain – absolute positioning, manual pagination, fiddly styling calculations. QuestPDF takes a different approach with a layout-based system and a fluent API that feels natural to C# developers. This guide walks through how QuestPDF handles PDF creation, from basic setup to building a full invoice with QR codes.

Generate PDFs in C# with PDFsharp: Complete Guide

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

Generate PDF with PDFsharp library in C#/.NET

For .NET developers, programmatically generating and modifying PDFs comes up in a lot of business applications. PDFsharp is a well-established .NET library that makes creating complex, multi-page documents easy and accessible. This guide covers everything you need to know about generating PDFs using PDFsharp in C# and .NET applications.

C# HTML to PDF with Playwright .NET: Full Guide

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

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

This guide shows you how to use Microsoft Playwright for .NET and C# to generate high-quality PDFs from HTML. You'll build a complete solution that combines Scriban templates with Playwright's browser automation to produce accurate, print-ready documents. The step-by-step tutorial covers everything from project setup to invoice generation, with all the code you need to add PDF generation to your .NET applications.

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.

HTML to PDF in C# with PuppeteerSharp: Complete Guide

· 14 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 shows you how to use PuppeteerSharp, the .NET port of the Node.js Puppeteer library, to generate 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. This guide covers setting up a C#/.NET project, using a template engine for dynamic content, and exporting an invoice PDF as the final result.

How to Create Accessible WCAG-Compliant PDFs

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

Accessible PDF documents that comply with WCAG standards

Creating accessible PDF documents is both a best practice and an increasingly common legal requirement. While PDFs remain the standard format for sharing official documents, they often create significant barriers for users with disabilities. This guide covers the process of creating WCAG-compliant PDF documents that work for everyone, regardless of ability.