I want to get the copy of the file in a variable which is downloaded as pdf using window.print(). Is there any event for window.print() which will give me the file before it is downloaded, like the @hasdownloaded event in vue-html2pdf package.
Thanks in advance