Skip to content

Commit 23567bf

Browse files
author
BaluB
committed
got the PDF part to displat text correctly
1 parent ea43245 commit 23567bf

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

index.js

+7-4
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,13 @@ form.addEventListener("submit",(e)=>{
2222

2323
let doc = new jsPDF();
2424

25-
doc.setFontSize(40)
26-
doc.text(20, 20, 'Personal Details');
27-
28-
doc.text('Hello world!', 10, 10);
25+
doc.setFontSize(40);
26+
doc.text(50, 20, 'Personal Details');
27+
28+
doc.setFontSize(20);
29+
doc.text(20,30, "Full Name :");
30+
doc.setFontSize(20);
31+
doc.text(60,30, fullName);
2932

3033
doc.save(`${fullName}.pdf`);
3134

0 commit comments

Comments
 (0)