I am trying to convert HTML & CSS of a page to PDF using jsPDF:
var pdf = new jsPDF('l', 'pt', 'a4');
pdf.addHTML(document.getElementsByClassName("container"),0,0, function () {
pdf.save('web.pdf');
});
However, jsPDF exclude CSS. Also, the PDF created is a file that is downloaded to local storage. I would like the PDF to be hold as a variable and so that it can be sent as attachment in email. Please suggest what is the alternatives that is available?