Review request

Invoice PDF generation in Lovable, is the approach maintainable?

Solved · 3 views · asked by noor_builds · edited

Repo or live app

github.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 · edited

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