ypratham / invoice-generator

Open source invoice generator, preview: https://invoice-generator-preview.vercel.app/
https://invoice-generator-two-gamma.vercel.app
MIT License
8 stars 6 forks source link

Add "Download as PDF" button #4

Closed ypratham closed 1 month ago

ypratham commented 1 month ago

Is your feature request related to a problem? Please describe. Currently, users can create invoices, but there is no option to download the invoice as a PDF. This limits the app's usefulness, as users cannot easily save or share their invoices directly from the application.

Describe the solution you'd like Implement a "Download as PDF" button on the invoice page that allows users to download the generated invoice as a PDF using React PDF. The PDF should replicate the on-screen invoice, including all relevant details like customer information, invoice items, and totals.

Describe alternatives you've considered

Manually using the browser’s print-to-PDF function, but this often leads to inconsistent formatting and layout issues. Additional context React PDF provides a flexible, React-based solution for generating PDFs directly from the application's components. The initial implementation should focus on replicating the current layout with no additional customizations. Future updates can introduce more advanced features.

Sauhard74 commented 1 month ago

hey @ypratham i would love to contribute to this project as it may seem easy but its a very useful and important feature I have worked on web apps and native apps and can help this issue to be resolved

ypratham commented 1 month ago

@Sauhard74 you may proceed, I'll assign this issue to you. Make sure to follow all the rules and guidelines. A review will be done before we merge your PR.

ovindu-a commented 1 month ago

Hey @ypratham, I would like to work on this too if possible.

ypratham commented 1 month ago

@ovindu-a once I get a PR from @Sauhard74 then I'll let you know @ovindu-a on which part u can work if there's anything more we can add

Sauhard74 commented 1 month ago

hey @ypratham i have fixed the issue and made a pr kindly check it out