Professional invoice and receipt PDF generator with customizable templates and management UI.
- 🧾 Dynamic PDF Generation - Convert HTML templates to professional PDFs
- 🎨 Template Customization - Web-based editor for invoice/receipt templates
- 🏢 Brand Customization - Upload logos, set colors, business information
- 📊 Receipt Types - Support for exempt receipts and tax invoices
- 🔗 n8n Integration - REST API endpoints for workflow automation
- 🚀 Dokploy Ready - Docker configuration included
invoice-pdf-generator/
├── src/
│ ├── controllers/ # Business logic controllers
│ ├── routes/ # API route definitions
│ ├── models/ # Data models and database schemas
│ ├── middleware/ # Express middleware functions
│ ├── templates/ # HTML templates for PDFs
│ └── utils/ # Utility functions
├── public/
│ ├── css/ # Frontend stylesheets
│ ├── js/ # Frontend JavaScript
│ └── uploads/ # User uploaded files (logos, etc.)
├── views/ # Web UI templates
├── database/ # Database files and migrations
├── Dockerfile # Docker configuration
└── server.js # Main server entry point
POST /api/generate-pdf- Generate PDF from template and dataGET /api/templates- List available templatesPOST /api/templates- Create new template
GET /- Template management interfaceGET /settings- Business settings and branding
-
Install dependencies:
npm install
-
Start development server:
npm run dev
-
Access management UI at
http://localhost:3000
Send POST request to /api/generate-pdf with:
{
"template": "receipt",
"data": {
"customerName": "John Doe",
"amount": 99.99,
"date": "2024-01-01",
"items": [...]
}
}Build and run with Docker:
docker build -t invoice-pdf-generator .
docker run -p 3000:3000 invoice-pdf-generatorMIT