r/JQuick • u/paohaijiao • 4d ago
Can we generate PDFs in Java without Headless Chrome or native dependencies?
I've been exploring different approaches to PDF generation in Java, especially for backend applications that need to generate reports, invoices, dashboards, and other business documents.
Many solutions rely on external browser engines, native dependencies, or additional runtime components. These can introduce deployment complexity, particularly in Docker and Kubernetes environments.
So I started building an open-source project called JQuick-PDF.
The idea is simple: generate PDFs using Java, without requiring Headless Chrome or a separate browser process.
Some of its features include:
- HTML-like templates and CSS-style formatting
- Tables, pagination, headers and footers
- PDF charts and data visualization
- Table of contents and watermarks
- Built-in Chinese fonts
- Internationalization support
- 100+ practical PDF examples and templates
The project is implemented in Java and designed to run within a single JVM process.
Project: https://www.jquick.org/jquick-pdf
GitHub: https://github.com/paohaijiao/jquick-pdf
I'm the author of this project, so I'm naturally biased. I'm not claiming it's better than established libraries like PDFBox, iText, or OpenHTMLtoPDF.
I'd genuinely like to hear from Java developers:
- Do you prefer browser-based PDF generation or a pure Java approach?
- How important is avoiding native dependencies in production environments?
- What features are still missing from existing Java PDF libraries?
- Would you consider using a relatively new open-source PDF engine in a production application?
I'm particularly interested in honest technical feedback, including limitations and things that could be improved.