[Solved] Convert Html to pdf with images
$(‘#showPdf’).click(function() { var pdf = new jsPDF(); pdf.addHTML($(“#divContent”), function() { var blob = pdf.output(“blob”); window.open(URL.createObjectURL(blob)); }); }); $(‘#downloadPdf’).click(function() { var pdf = new jsPDF(); pdf.addHTML($(“#divContent”), function() { pdf.save(‘pageContent.pdf’); }); }); <script src=”https://cdnjs.cloudflare.com/ajax/libs/jspdf/1.3.2/jspdf.debug.js”></script> <script src=”https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js”></script> <div id=”divContent” style=”background-color: white; padding:20px 25px”> <h3>SEA MINK</h3> <p>The sea mink (Neovison macrodon) was a mammal from the eastern coast of … Read more