Skip to main content

5 posts tagged with "convert html to pdf"

View All Tags

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.

Optimizing HTML for Professional PDF Output

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

Optimizing HTML for Perfect PDF Conversion

PDF documents preserve formatting across devices, but converting HTML to PDF often produces broken layouts, misplaced page breaks, and missing fonts. This guide covers the CSS print rules, page break controls, and HTML structure patterns that fix those problems.

How to Convert HTML to PDF Using an API: Quick Start Guide

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

HTML to PDF API Conversion Process showing API-based PDF generation

If you need to generate PDFs from HTML in a production app, you have two options: run a local rendering tool yourself (Puppeteer, Playwright, wkhtmltopdf) or call an HTML to PDF API that does the rendering for you. This tutorial covers the API approach with a complete Node.js example that generates invoice PDFs using EJS templates and the PDFBolt API. You will also find a comparison with headless browser solutions to help you pick the right tool for your project.

Top Node.js HTML to PDF Libraries Compared

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

NPM Trends overview showing the download statistics for PDF generation libraries over the past 12 months

Picking a Node.js PDF generation library isn't straightforward. There are browser-based tools that convert HTML to PDF, programmatic builders that create documents from scratch, and cloud APIs that handle everything remotely. This guide compares the five most downloaded libraries with actual npm numbers and working code examples.

Why HTML to PDF Conversion is Key for Web Apps

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

HTML to PDF Conversion in Modern Web Apps with PDFBolt

Businesses and developers regularly need to turn HTML into PDF – for invoicing, legal documents, offline file storage, and dozens of other workflows. HTML works well on screen, but PDFs hold their formatting everywhere. An HTML to PDF API removes the guesswork from that conversion.