Review request

Invoice PDF generation in Lovable, is the approach maintainable?

Solved · 338 viewsasked by noor_builds

Repo or live app

git.example.com/noor-haddad/invoicer ↗

Unsure about: StructurePerformance

Lovable generates PDFs in the browser with a big library. It works but the bundle is 4 MB and the layout breaks on Safari.

Comment

1 answer

Marked as helpful by the asker
dev_ana

Move PDF generation to a server route: render the invoice as an HTML page and print it to PDF with Playwright or a service like Browserless. Browser PDF libraries are where bundle size and Safari bugs go to live. Your React invoice component can stay exactly as it is.

Comment