I'm using JSPDF to convert HTML to pdf and I want to send it over email. For that, I need to store the file in the folder. But I'm not able to store it on the folder as "jspdf.save('filename.pdf')" does not give option for path
What I have tried:
$('#print').click(function () {
domtoimage.toPng(document.getElementById('divinvoiceprint'))
.then(function (blob) {
var pdf = new jsPDF('l', 'pt', [$('#divinvoiceprint').width(), $('#divinvoiceprint').height()]);
pdf.addImage(blob, 'PNG', 0, 0, $('#divinvoiceprint').width(), $('#divinvoiceprint').height());
pdf.output("D:\Test.pdf");
alert("ok");
pdf.save("D:\Test.pdf");
that.options.api.optionsChanged();
});
});