Spaces:
Running
Running
Update static/script.js
Browse files- static/script.js +3 -1
static/script.js
CHANGED
|
@@ -126,7 +126,9 @@ function loadResumerPage() {
|
|
| 126 |
if (e.target.id === "downloadPdf") {
|
| 127 |
const { jsPDF } = window.jspdf;
|
| 128 |
const doc = new jsPDF();
|
| 129 |
-
doc.
|
|
|
|
|
|
|
| 130 |
doc.save('resume.pdf');
|
| 131 |
}
|
| 132 |
|
|
|
|
| 126 |
if (e.target.id === "downloadPdf") {
|
| 127 |
const { jsPDF } = window.jspdf;
|
| 128 |
const doc = new jsPDF();
|
| 129 |
+
let lines = doc.splitTextToSize(text, 180);
|
| 130 |
+
doc.text(lines, 10, 10);
|
| 131 |
+
|
| 132 |
doc.save('resume.pdf');
|
| 133 |
}
|
| 134 |
|