Vercel Word Template PDF Generator

Job ID: 40076667

Budget: $30 – $250 USD

I have a 40-page .docx report template whose layout and styling must remain exactly as is. Inside my Vercel v0 application there are already two custom questionnaires; when a user completes them, their answers are available to us as JSON and can be passed to APIs, or used for report generation. Those answers need to flow straight into the Word template’s placeholders and, immediately afterward, a pixel-perfect PDF of the populated document must be offered for download.

Here is the flow I need implemented:

• Collect the responses as JSON and map every field to its corresponding {{placeholder}} in the .docx.
• Perform the merge server-side, convert the resulting document to PDF without altering fonts, spacing, or imagery, then store or stream it back so the user can download.
• Keep the solution self-contained in the repo, compatible with the usual Vercel/Next.js deployment pipeline, and document any libraries you use for the merge (e.g., docxtemplater, Pizzip, libreoffice‐headless, etc.).

Acceptance criteria
– Both forms render and validate correctly in v0.
– After final submission a PDF matching the Word template’s design is generated in under 10 seconds.
– All placeholders are reliably filled from the JSON data; empty answers remain blank in the PDF rather than showing tokens.
– Code and README are clear enough for me to redeploy to another Vercel project without modification.