Skip to content

[Feature] PDF Export Functionality #12

Description

@P4ST4S

Description:
The Features section prominently advertises "Export PDF & HTML" but only HTML download is implemented. There is no PDF generation capability.

Context/Rationale:
This is a false advertising issue. Users expect PDF exports as advertised. PDFs are the standard format for legal documents, more professional than HTML, and cannot be easily edited. This is a critical missing feature that impacts user trust and product value.

Location: components/Features.tsx:27-28, components/CGUPreview.tsx:89-108

Implementation Suggestion / To-Do:

  1. Implement server-side PDF generation using Puppeteer or Playwright
  2. Alternative: Use @react-pdf/renderer for client-side generation
  3. Alternative: Use API service like PDFShift or DocRaptor
  4. Add "Télécharger PDF" button alongside HTML download
  5. Ensure PDF preserves formatting and styling
  6. Add watermark for free tier, premium PDFs for Pro users
  7. Optimize PDF file size

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions