kempsteven/vue-html2pdf

Use @beforeDownload and generatePdf() action generates two PDF

JacquesJahnichen opened this issue · 7 comments

Hello,

How can I add a button to "Dowload the PDF" and use @beforeDownload in a same time to add a footer ? When I do that I download two pdf

image

image

A little reminder on this subject

If anyone has an idea to solve this problem, it is welcome.

@JacquesViviarto set both variables: preview-modal and enable-download to false

That solved for me

@JacquesViviarto set both variables: preview-modal and enable-download to false

That solved for me

The problem of this solution is that now the @hasDownloaded doesn't work anymore, if anyone has a solution please let me know

@AloneInMyMind
use beforeDownload, also set both variables.
It`s working for me

Thanks for your help. This config work for me

<vue-html2pdf
          :preview-modal="false" 
          :enable-download="false"
          @beforeDownload="beforeDownload">