kempsteven / vue-html2pdf

vue-html2pdf converts any vue component or element into PDF, vue-html2pdf is basically a vue wrapper only and uses html2pdf.js behind the scenes.
https://www.npmjs.com/package/vue-html2pdf
MIT License
432 stars 75 forks source link

Uncaught (in promise) Unable to find element in cloned iframe - on second attempt to render & download #145

Open jumptrnr opened 1 year ago

jumptrnr commented 1 year ago

Describe the bug Running in Nuxt am able to download the PDF the firs time. But when attempting to do so a second time, get the following error in the console:

Uncaught (in promise) Unable to find element in cloned iframe in downloadPDF

it seems to get to the following in the module:

this.pdfFile = await html2PdfSetup.output('bloburl');

( To Reproduce Steps to reproduce the behavior:

  1. Implement in Nuxt per instructions
  2. Run generatePdf 1st time - all good,
  3. Run generatePdf 2nd time - see above error

Screenshots N/A

Package Version e.g. 1.8.0

Additional context Add any other context about the problem here.

baraaksayeth commented 7 months ago

I meet this problem too. Any solutions?