Tagged articles
4 articles
Page 1 of 1
macrozheng
macrozheng
Jul 25, 2025 · Backend Development

Generate PDFs in Java with iText: From Hello World to Dynamic Templates

This tutorial explains how to generate PDF files in Java using the iText library, covering dependency setup, a simple "Hello World" PDF example, converting complex HTML pages to PDF, and dynamic content insertion with Freemarker templates.

FreemarkerHTML to PDFbackend-development
0 likes · 14 min read
Generate PDFs in Java with iText: From Hello World to Dynamic Templates
Pan Zhi's Tech Notes
Pan Zhi's Tech Notes
Feb 14, 2025 · Backend Development

How to Generate PDF Files in Java: A Complete Step‑by‑Step Tutorial

This guide walks through the need for PDF generation in business scenarios, introduces the iText library (both iText5 and iText7), shows how to add Maven dependencies, provides a minimal “Hello World” PDF example, then details converting HTML (with CSS, images, and Freemarker variables) into PDF, and discusses when custom adaptation is required.

FreemarkerHTML to PDFPDF
0 likes · 13 min read
How to Generate PDF Files in Java: A Complete Step‑by‑Step Tutorial
YunZhu Net Technology Team
YunZhu Net Technology Team
Oct 9, 2021 · Backend Development

Dynamic PDF Report Generation Using wkhtmltopdf and wkhtmltopdf‑DotNet in .NET

This article explains how to create dynamic PDF reports by designing HTML templates and converting them with the open‑source wkhtmltopdf tool and its .NET wrapper wkhtmltopdf‑DotNet, covering requirements, configuration, header/footer, table of contents, bookmarks, HTML design tips, CSS fixes, and PDF merging using iTextSharp.

HTML to PDFTable of ContentsWkHtmlToPdfDotNet
0 likes · 15 min read
Dynamic PDF Report Generation Using wkhtmltopdf and wkhtmltopdf‑DotNet in .NET