skip to Main Content

What should I use to make my JsPDF code work?

<!DOCTYPE html> <html> <head> <title>Generate PDF from Text</title> </head> <body> <h1>Generate PDF from Text</h1> <textarea id="textInput" rows="10" cols="50"></textarea> <br> <button id="downloadBtn">Download as PDF</button> <script src="https://cdnjs.cloudflare.com/ajax/libs/jspdf/2.5.1/jspdf.umd.min.js"></script> <script> document.getElementById("downloadBtn").addEventListener("click", function() { var text = document.getElementById("textInput").value; // Create a new jsPDF instance var…

VIEW QUESTION
Back To Top
Search