Add HTML-to-PDF export endpoint for generated documents #1285
Labels
No labels
agent-task
agent-task
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
pook/compliancebot#1285
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Create POST /api/documents/:id/export-pdf endpoint that retrieves a stored generated document, converts HTML to PDF, and returns as downloadable file. Use puppeteer (or html-pdf-node for lighter weight) for conversion. Set Content-Disposition header with filename like {document_type}_{date}.pdf. Apply basic PDF styling: A4 size, margins, professional font. Wire behind the requireSubscription middleware (issue #1263) so only active subscribers can export. This is a key revenue feature — customers need downloadable legal documents for deployment.
Generated by CEO Planner (priority: 3)