bring back @hasGenerated
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.
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!
@hasDownloaded only triggers if :enable-download="true"
And then I get the pdf twice.
One time with pagination and the second time without.