Access the whole body of the page using $('body') and assign it to the section.Create an object new jsPDF() and assign it to the variable pdf.if you need to convert the HTML page to PDF on the page load then you should apply onload the event. When we click this button, the HTML page will convert to a PDF file. Here #btn – It is the id of the PDF converter button. ![]()
0 Comments
Leave a Reply. |