A Spring Boot Application with REST API to generate PDF using Thymleaf template.
Thymeleaf is a modern server-side Java template engine for web and standalone environments.
In the context of Spring Boot, Thymeleaf is commonly used as the default template engine for generating dynamic HTML content in web applicationsand manipulate PDF documents.
REST API to accept data and generate PDF documents. Storage of generated PDFs on local storage for future retrieval.
Java Development Kit (JDK) version 8 or higher Maven Postman or Swagger for testing
POST /generate/document
POST 'http://localhost:8080//generate/document'
Content-Type: application/json'
template: invoice_template'
{
"seller": "XYZ Pvt. Ltd.",
"sellerGstin": "29AABBCCDD121ZD",
"sellerAddress": "New Delhi, India",
"buyer": "Vedant Computers",
"buyerGstin": "29AABBCCDD131ZD",
"buyerAddress": "New Delhi, India",
"items": [
{
"name": "Product 1",
"quantity": "12 Nos",
"rate": 123.00,
"amount": 1476.00
}


