Open
Description
Hello there, i've been trying the jsPDF.html function, but it seems its outputting the html but in such large scale that it is unreadable. Am I doing something wrong? I've been using the lines from the documentation itself in my componnent.
I am actually working with vue.js.
methods: {
download() {
var html =
`<body>
<h1>This is Title</h1>
<div>
<p>this is test no.1</p>
</div>
<div>
<p><b>This is test no.1</b></p>
</div>
<div>
<p>This is test no.3</p>
</div>
</body>`;
var doc = new jspdf();
doc.html(html, {
callback: function (doc) {
doc.save();
},
});
},
},
The code results its this file:
generated.pdf