Last active
May 17, 2022 16:56
-
-
Save davidnormo/5e39fb9bbe026e12c3da to your computer and use it in GitHub Desktop.
jsPDF as email attachment
This file contains 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
var pdf = new jsPDF(); | |
pdf.text(0, 0, 'Hello World!'); | |
var pdfBase64 = pdf.output('datauristring'); | |
window.plugin.email.open({ | |
to: ['[email protected]'], | |
subject: 'New PDF!', | |
body: 'Hi there, here is that new PDF you wanted!', | |
isHTML: false, | |
attachments: [pdfBase64] | |
}); |
Yes, windows.plugin is deprecated. what are the alternatives of this please anyone can help.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
windows.plugin is now deprecated. How can I add the pdf as a attachment at this moment?