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
| <system.webServer> | |
| <rewrite> | |
| <rules> | |
| <rule name="React Routes" stopProcessing="true"> | |
| <match url=".*" /> | |
| <conditions logicalGrouping="MatchAll"> | |
| <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" /> | |
| <add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" /> | |
| <add input="{REQUEST_URI}" pattern="^/(api)" negate="true" /> | |
| </conditions> |
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
| var pdf = new jsPDF(); | |
| pdf.text(0, 0, 'Hello World!'); | |
| var pdfBase64 = pdf.output('datauristring'); | |
| window.plugin.email.open({ | |
| to: ['to@email.com'], | |
| subject: 'New PDF!', | |
| body: 'Hi there, here is that new PDF you wanted!', | |
| isHTML: false, | |
| attachments: [pdfBase64] |