Hello All,
I face issue with using jsPDF library in sap ui5. I have written the below code in my controller.
var doc = new jsPDF('p', 'pt');
doc.autoTable(columns, rows);
doc.save('table.pdf');
As you see here the variable doc is getting the instance of jsPDF but I am not able see autoTable function in that, I could see save function there.
I have downloaded jspdf and autotable libraries and placed in my UI5 project as below:
I have initialized libraries in json as below
But I get 'doc.autoTable is not a function' error when I execute the code.
I am able to implement this functionality in other UI5 applications of higher versions(1.4.*). I am not sure whether version causes the issue or not. Please help on this.
Thanks in advance