Skip to main content

40 posts tagged with "pdf generation"

View All Tags

HTML to PDF in PHP Using DomPDF: Complete Tutorial

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

PHP HTML to PDF conversion with DomPDF library

DomPDF is one of the most popular PHP libraries for converting HTML to PDF. This tutorial walks through PHP HTML to PDF conversion step by step: from a basic DomPDF setup to a full invoice generator using Twig templates. You will also find troubleshooting tips and a comparison with API-based PHP PDF generation alternatives.

Java HTML to PDF with iText and FreeMarker: Complete Guide

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

Java HTML to PDF generation with iText library - certificate example

Need to convert HTML to PDF in Java? iText paired with FreeMarker is one of the most popular approaches to Java PDF generation. This tutorial walks through a complete example – building a certificate generator that turns an HTML template into a finished PDF, with all the code you need to get started.

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.

jsPDF HTML to PDF: Client-Side PDF Generation Guide

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

Illustration of generating PDFs in the browser using jsPDF

Generating PDFs directly in the browser gives users immediate, downloadable documents without a server round-trip. This client-side approach reduces server load and works offline. In this guide, we'll show you how to use jsPDF for HTML to PDF conversion in the browser, along with html2canvas for capturing styled content. You'll find working code examples for generating PDFs from text, form data, and rendered HTML elements.

Top Python HTML to PDF Libraries Compared

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

Google Trends overview showing the relative search interest for HTML to PDF conversion libraries over the past 12 months

Five Python libraries handle most HTML to PDF conversions today: Playwright, WeasyPrint, pdfkit, Pyppeteer, and xhtml2pdf. Below we compare them by download numbers, features, and code examples so you can pick the one that fits your project.

Generate PDFs in Node.js Using Puppeteer: Full Guide

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

Illustration of generating PDF files in Node.js using Puppeteer

Generating invoice PDFs is a common requirement for web applications – whether for e-commerce, SaaS billing, or financial reporting. Puppeteer, a powerful headless browser automation tool for Node.js, makes it easy to convert HTML into high-quality PDFs. In this guide, we’ll walk you through setting up Puppeteer, designing an invoice with HTML and CSS, and generating a professional PDF.

How to Generate PDFs in 2025: Methods and Tools Compared

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

Illustration showcasing HTML to PDF conversion in 2025

PDF generation is a core requirement for many web applications – invoices, reports, contracts, certificates. Over the years, various HTML to PDF tools have taken different approaches to the problem. In this post, we look at the evolution of PDF generation solutions – from wkhtmltopdf and PrinceXML (via DocRaptor) to Puppeteer and Playwright – and then walk through a tutorial on using Playwright (Node.js) to generate a sample invoice PDF.

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.