Dynamic Visiting Card and Letterhead Designer: Template Editor, Merge Fields and Watermark with Java and React.js
About this project
Every employee needs a visiting card and every letter needs a consistent letterhead, yet teams keep rebuilding them by hand. In this project you will build a dynamic document designer: a React.js editor to create visiting card and letterhead templates, merge fields that fill content automatically, a configurable watermark, and a Java REST Web API that renders print-ready PDFs and stores everything in SQL Server.
Project Overview
You will build a template-driven document system. In the React.js designer, a user places text, images, logos, shapes, lines and QR codes on a visiting card (standard 90 x 50 mm) or an A4 letterhead with header, body and footer zones. Any text can contain merge fields such as {{name}}, {{designation}}, {{phone}}, {{company}}, {{date}} or {{ref_no}}. The template is saved as JSON through a Java (Spring Boot) API into SQL Server. When the user fills in values, or uploads a CSV for bulk generation, the Java engine merges the data, applies the watermark and produces a PDF. For letterheads, the body is a rich-text area whose content is fully dynamic and flows across multiple pages while the header, footer and watermark repeat on every page.
What You Will Learn
- Designing a template JSON model for pages, elements, fonts, colors and merge fields
- Building a canvas editor in React.js with drag, resize, align, layers, undo and redo
- Building a rich-text editor for dynamic letter body content
- Implementing a merge-field engine with default values, formatting and missing-field checks
- Generating PDF in Java with fonts, images, QR codes and multi-page flow
- Applying text and image watermarks with opacity, rotation, tiling and page selection
- Handling print requirements such as page size, margins, bleed and 300 DPI images
- Running bulk generation from CSV as a background job and delivering a ZIP
- Sanitizing user content and uploaded files safely
Before you start
Technical Requirements
- Java 17 or later with Spring Boot
- OpenPDF or Apache PDFBox for PDF generation, ZXing for QR codes, and an HTML sanitizer library
- SQL Server 2019 or later, or SQL Server Express, using JSON columns with an ISJSON check
- React.js (Node.js 18 or later) with Konva or Fabric.js, and TipTap or Quill
- Postman or Swagger for testing the API
- Git and GitHub for version control
Prerequisites
- Working knowledge of Java and basic SQL (SELECT, INSERT, UPDATE, JOIN)
- Basic understanding of REST, JSON, HTTP and React.js
- Basic idea of PDF, page sizes and fonts
Rules
- Use only your own, fictional or openly licensed logos, fonts and images; do not create documents that imitate a real organization
- Validate uploads by real file type and size, and store them outside the web root
- Sanitize all rich-text content and never let the renderer fetch external URLs
- Embed only fonts you are licensed to use
- Keep all keys, passwords and secrets out of the source code and GitHub
Your mentor
Your mentor's details will be shared once you select this project.
Good to know
- Estimated time: 30 hours
- Mentor support: included, for code review and guidance
- Certificate: awarded on successful completion
- Portfolio value: a document-automation product that combines a visual editor, a template engine and PDF generation
- Important: use fictional or your own brand assets during the assignment; templates must not copy another organization's identity
- Limits: exact on-screen and PDF layout can differ slightly between renderers, so test with real PDFs, and embed fonts to avoid substitution
- Bonus ideas: a Flutter app to share a digital visiting card with a QR code, a digital signature field, email delivery of generated letters, or multi-language and Indian-script font support