Facing error while generating the PDF.
Summary:
- I imported the jsPDF.min.js library.
- Using the simple JavaScript function to generate the PDF.
define(['resources/js/jspdf.min'],function(jsPDF){
'use strict';
class PageModule {
generatePDF(arg1) {
const doc = new jsPDF();
// let doc= new jsPDF('p', 'pt',[1200,1000]);
doc.text(10,10,'Hello World');
doc.save('hello.pdf');
}
}
return PageModule;
});
Facing below mentioned error:-
can anyone check and let me know what wrong am i doing?
Please help me to complete this task.
Thanks in advance
Tagged:
0