Skip to main content

2 posts tagged with "flying saucer"

View All Tags

Top Java Libraries for PDF Generation in 2025

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

Top Java Libraries for PDF Generation in 2025

Creating high-quality PDF documents is essential for Java applications. Whether generating invoices, reports, or dynamic business documents, choosing the right PDF library impacts your application's performance, maintainability, and licensing costs. The Java ecosystem offers diverse approaches – from direct programmatic construction to browser-based HTML to PDF conversion. This analysis explores the most popular Java PDF libraries available in 2025, providing comparisons, code examples, and guidance to help you select the optimal solution.

How to Generate PDF from HTML in Java Using Flying Saucer

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

Convert HTML to PDF in Java using Flying Saucer and Thymeleaf – step-by-step guide

Looking for a reliable way to convert HTML to PDF in Java – without relying on headless browsers or heavyweight libraries? In this tutorial, you'll learn how to use Flying Saucer (xhtmlrenderer) together with Thymeleaf templates to generate clean, professional PDFs directly in your Java application. Flying Saucer is a lightweight, pure Java library that renders XHTML and CSS into PDF format – no external rendering engines required. It’s ideal for reports, invoices, and other dynamic documents where fast and reliable PDF generation is essential.