al1abb / invoify

An invoice generator app built using Next.js, Typescript, and Shadcn
https://invoify.vercel.app
MIT License
365 stars 71 forks source link

[BUG] - PDF generation issue in Mozilla Firefox #11

Open al1abb opened 11 months ago

al1abb commented 11 months ago

Description

[!NOTE] These issues also arise in the deployed version of the app

Issues:

  1. Direct Download: After generating a PDF, the file is downloaded directly without proper user interaction.

  2. Empty PDF iframe: The PDF iframe appears to be empty, causing difficulties in rendering or displaying the generated PDF.

  3. Opening in New Tab: Opening the PDF in a new tab does not work as expected; it may not load or display correctly.

  4. Quantity Input Error: The quantity input field can accept non-numeric values even though it is specified as type=number.

  5. Signature Drawing: The signature drawing on canvas feels slower and lags behind the mouse (this issue comes from shadcn dialog element).

Expected Behavior:

Environment:

kishaningithub commented 4 months ago

Any pupeteer alternatives that can fix this natively?

al1abb commented 4 months ago

Any pupeteer alternatives that can fix this natively?

Don't know

kishaningithub commented 4 months ago

I have used the following in the past

https://github.com/diegomura/react-pdf

It has a declarative way to generate PDF within the browser itself..

al1abb commented 4 months ago

I have used the following in the past

https://github.com/diegomura/react-pdf

It has a declarative way to generate PDF within the browser itself..

I know about it. Tried using it in the past, but had issues configuring it with next.js. Then I decided to use puppeteer instead

kishaningithub commented 4 months ago

Oh okie.. then can https://github.com/foliojs/pdfkit be directly used?

al1abb commented 4 months ago

Oh okie.. then can https://github.com/foliojs/pdfkit be directly used?

Not sure

Qodestackr commented 4 months ago

This is a great project but just having issues extracting it to fit my context. Thanks tho

Faizanahmedsy commented 2 months ago

It is not working on other broweser too