Property 'fromHTML' does not exist on type jsPDF

Viewed 4452

I am trying to use jsPDF to convert an HTML code to PDF. I've seen that the best way to do this is to use the jsPDF.fromHTML() function but when I try I get the following:

Property 'fromHTML' does not exist on type 'jsPDF'

I am using Angular 10 and jsPDF@2.3.0. I already tried to npm i jspdf again and to rollback to version 2.2.0 but with no luck

0 Answers
Related