-1

1) I am currently downloading pdf of web-page using function window.print() 2)but now i want to send that downloaded pdf in email as a attachment. 3)I am not able to access that pdf in my code

how i will be able to send that email with pdf in just one click?

Jankapunkt
  • 8,128
  • 4
  • 30
  • 59
Tushar Kale
  • 159
  • 1
  • 12
  • ` 3)I am not able to access that pdf in my code` you can use the [Blob](https://developer.mozilla.org/en-US/docs/Web/API/Blob) API to handle local binaries. – Jankapunkt Jun 06 '19 at 06:55
  • check this out: https://stackoverflow.com/questions/54636428/save-pdf-from-window-print-to-js-var/54713587#54713587 – Weihui Guo Jun 07 '19 at 01:30

1 Answers1

0

You can try get a screenshot of your window then put it on a pdf.

see this two plugins

http://html2canvas.hertzen.com

https://parall.ax/products/jspdf