You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
function demoPDF() {
var doc = new jsPDF();
doc.text(10, 10, 'Hello everybody');
doc.text(10, 20, 'My name is');
doc.text(10, 40, 'Contact me at');
doc.text(10, 30, 'I have just created a simple pdf using jspdf');
doc.setFont("times");
doc.setFontType("italic");
doc.text(50, 40, document.getElementById("email").value); //append email id in pdf
doc.setFontType("bold");
doc.setTextColor(255, 0, 0); //set font color to red
doc.text(60, 20, document.getElementById("fname").value); //append first name in pdf
doc.text(100, 20, document.getElementById("lname").value); //append last name in pdf
doc.addPage(); // add new page in pdf
doc.setTextColor(165, 0, 0);
doc.text(10, 20, 'extra page to write');
doc.save('katara.pdf'); // Save the PDF with name "katara"...
}
</script>
</script>
issue at IE9 only
i m using jspdf Version 1.0.272.my code is
function demoPDF() {
var doc = new jsPDF();
doc.text(10, 10, 'Hello everybody');
doc.text(10, 20, 'My name is');
doc.text(10, 40, 'Contact me at');
doc.text(10, 30, 'I have just created a simple pdf using jspdf');
doc.setFont("times");
doc.setFontType("italic");
doc.text(50, 40, document.getElementById("email").value); //append email id in pdf
doc.setFontType("bold");
doc.setTextColor(255, 0, 0); //set font color to red
doc.text(60, 20, document.getElementById("fname").value); //append first name in pdf
doc.text(100, 20, document.getElementById("lname").value); //append last name in pdf
doc.addPage(); // add new page in pdf
doc.setTextColor(165, 0, 0);
doc.text(10, 20, 'extra page to write');
doc.save('katara.pdf'); // Save the PDF with name "katara"...
}
</script>
</script>
The text was updated successfully, but these errors were encountered: