Created
April 11, 2022 13:04
-
-
Save sdon2/621ab0faf3796fa25e369b43af362166 to your computer and use it in GitHub Desktop.
Creates pdf on the fly
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
html2pdf().from(element).toPdf().get('pdf').then(function (pdf) { | |
window.open(pdf.output('bloburl'), '_blank'); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment