vue-html2pdf icon indicating copy to clipboard operation
vue-html2pdf copied to clipboard

bring back @hasGenerated

Open cod3master opened this issue 5 years ago • 2 comments

The hasDownloaded is not a valid replacement for my usecase.

I just need the old @hasGenerated(blob) function with nothing else, because the code will handle the rest.

I don't want any kind of automatic download and setting enable-download = false, doesn't trigger beforeDownload so I have no way to intercept the pdf blob and cancle the download event after that.

I think @hasGenerated can still be a valid alternative to @hasDownloaded and both can cooexist.

cod3master avatar Nov 01 '20 12:11 cod3master

Hmm @beforeDownload should trigger, and you should get the object { html2pdf, options, pdfContent }.

and yeah I understand the reason, I'll go and think about it more, thanks!

kempsteven avatar Nov 01 '20 22:11 kempsteven

@hasDownloaded only triggers if :enable-download="true" And then I get the pdf twice. One time with pagination and the second time without.

MartinX3 avatar May 27 '23 15:05 MartinX3