Search code examples
jspdfjspdf-autotable

TypeError: this.internal.getCurrentPageInfo is not a function in jspdf


When i try to convert html table to pdf using jspdf then get this error:

TypeError: this.internal.getCurrentPageInfo is not a function

Same code is used here https://codepen.io/someatoms/pen/adojWy

I took reference from https://github.com/simonbengtsson/jsPDF-AutoTable/blob/master/examples/examples.js#L142


Solution

  • The codepen example was using an old version of jspdf. Fixed the codepen example now by updating to the latest version.