Overview

Print & Document Generation Lab

Twenty working examples (features 351-370) of printing and generating documents with Spring Boot 3.5, Spring Data JPA and SQL Server: PDF, Excel, Word, barcodes, QR codes, labels, receipts, invoices, certificates, templates, batch printing, e-mail, digital signatures, watermarks and full page setup.

16Invoices in SQL Server
6Receipts
6Certificates
116Documents generated / printed
Preview & print
Generate files
Codes
Business documents
Share & secure
Page setup

Recent print jobs

All history
FeatureDocumentTypeWhen
356 CODE_128: null SVG 7 Nov 02:13
356 CODE_128: PD-2026-000351 PNG 6 Nov 22:53
354 Sales report (16 invoices) EXCEL 6 Nov 21:23
360 Invoice INV-202609-003 PDF preview 6 Nov 00:26
356 CODE_128: PD-2026-000351 SVG 6 Nov 00:15
360 Invoice INV-202609-006 PDF preview 5 Nov 18:49
360 Invoice INV-202608-002 PDF preview 5 Nov 18:16
361 Certificate CERT-2026-0001 CERTIFICATE 5 Nov 17:50

How this project is built

WebSpring MVC + Thymeleaf pages, plain CSS and a little JavaScript
DatabaseSQL Server PrintDocLabDB - JPA entities, Flyway migration V1__schema.sql
PDFOpenPDF (create), PDFBox (print, sign), Bouncy Castle (CMS signature)
OfficeApache POI - XSSF for Excel, XWPF for Word
CodesZXing - Code 128, Code 39, EAN-13, QR
Printingjavax.print + java.awt.print.PrinterJob, CSS @media print / @page
E-mailSpring Mail (Jakarta Mail) - Outbox .eml or SMTP

Every page has a yellow How it works box with the classes and code to study. The README.md in the project folder maps every feature to its source files.