Back to Projects
Lead Engineer
Personalized Book Generator
A backend system that generates personalized books by combining user inputs, images, and predefined layouts into high-quality PDF outputs.
DjangoFPDFPILPDF GenerationBackend
Problem
Personalized printed books require precise layout control, image composition, and consistent typography, which generic document tools often fail to provide.
Solution
Built a Django-based backend that generates print-ready PDFs using deterministic templates, allowing deep personalization while preserving layout consistency.
Architecture & Approach
Django backend with PDF generation implemented using FPDF and PIL for image composition. The system stacks and edits images programmatically to produce visually consistent outputs.
Key Tradeoffs
- Template-based generation limits flexibility but ensures predictable print quality
- PDF rendering performance requires careful resource management
- Visual correctness is prioritized over generation speed
What I Learned
- Print workflows have stricter constraints than digital ones
- Small layout errors are highly visible in physical products
- Deterministic generation simplifies quality control at scale