cancel
Showing results for 
Search instead for 
Did you mean: 

jsPDF Error: autoTable is not a function

avisheksharmacoder
Participant
0 Kudos
1,110

Hi, I have been trying to download an M table data into a PDF using jsPDF library.

For normal text, the functionality is working fine. I am able to create and download PDFs.

The methods/functionality that are available inside the jsPDF Class are all working fine. The extension libraries seems to not work at all.

For the Table, it is showing autoTable is not a function.

(for some reason I am not able to upload the code here directly as it is not getting formatted properly so I am posting images).

here are the libraries that I have used in the manifest file,

and the controller code.

can you help me in this.
Is there an another way to do this better and much simpler.

Thank you.

Accepted Solutions (0)

Answers (1)

Answers (1)

Marian_Zeis
Active Contributor

Have you tried using ui5-tooling-modules to integrate jsPDF?

This should work better than copying the data manually.

https://blogs.sap.com/2021/11/15/using-npm-packages-in-ui5-without-shims/

avisheksharmacoder
Participant
0 Kudos

using Loader ?