Why generate pdf doesn't open?

Good evening. Please tell me why after saving, writes: "Error while opening the pdf-document", I first thought that the case of the object type (pdf.output('blob')), tried every one, nothing works in the examples the pdf is a link in the frame here please: https://github.com/MrRio/jsPDF/blob/master/example...


var pdf = new jsPDF('p', 'pt', 'letter')

 pdf.html(document.getElementById('html'), {
 callback: function (pdf) {

 pdf.save('test.pdf', pdf)


Thank you

April 4th 20 at 00:59
0 answer

Find more questions by tags JavaScript