Skip to main content

3 posts tagged with "thymeleaf"

View All Tags

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.

How to Convert HTML to PDF in Java Using Playwright and Thymeleaf

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

HTML to PDF with Playwright in Java

Need to convert HTML into polished PDFs in your Java project? This tutorial will show you how to use Playwright for Java together with Thymeleaf templates to generate clean, professional-looking PDFs. Whether you're creating invoices, reports, or other dynamic business documents, this solution allows you to render HTML to PDF with pixel-perfect precision using a headless browser. With easy-to-follow code examples and a straightforward setup, it's a practical and modern approach to HTML to PDF generation in Java.

Top HTML Template Engines

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

HTML to PDF - Template Engines

In the world of modern web development, creating dynamic, data-driven websites efficiently is a constant challenge. Template engines have emerged as a crucial tool in a developer's toolkit, streamlining the process of generating HTML content dynamically. This article explores what template engines are, how they work, their benefits, and the most popular options available today.