Java document layout and generation engine
Generate reports, forms and structured documents with Java APIs or XML templates.
Open report PDF Export from one semantic model
Write your content, supply your fonts, then let the engine handle layout and pagination.
Complete Java examplevar fonts = FontGroup.builder()
.fontFile("fonts/regular.ttf")
.build();
var engine = DocumentEngine.builder(fonts).build();
var document = Document.builder()
.heading("Quarterly report", 1)
.paragraph("A report with automatic pagination.")
.table(List.of("Metric", "Value"),
List.of(List.of("Revenue", "120")))
.build();
engine.write(document, new PdfBackend(), "report.pdf");Supply your own licensed fonts. The complete example includes dependencies and imports.
These samples were generated with Export4j. Open a PDF to inspect the actual output.
Paragraphs, tables, images, page bands and automatic pagination.
Reuse document structures with variables, conditions and loops.
Check format subsets and handle explicit conversion losses.
Fonts, runtime requirements, format limits and licensing.
Java 21 · Apache-2.0 · No Office or browser process required
Currently a release candidate. APIs may change. RC2 release notes