Skip to main content

2 posts tagged with "java html to pdf"

View All Tags

Apache PDFBox Java Tutorial: How to Generate PDFs

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

Apache PDFBox Java Tutorial: Generate PDFs from HTML with Code Examples

Most Java HTML to PDF libraries rely on browser engines to render content. But if you need full control over layout, fonts, positioning, and structure – especially for invoices, reports, or certificates – Apache PDFBox offers a code-driven alternative. Rather than converting web pages, PDFBox lets you programmatically construct PDF documents from scratch using Java. This guide covers PDFBox's low-level API for creating formatted PDFs – you skip browser dependencies entirely and control exactly how your documents are styled, structured, and generated.

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.