Search code examples
javascripttypeerrorjspdf

jsPDF. Some mistake in the from_html.js


When I try to export a page in PDF through jsPDF I get the error:

TypeError: this.pdf.internal.pageSize.getHeight is not a function

Note: the page is rendered


Solution

  • Try doing

    this.pdf.internal.pageSize.height;
    

    if you want to get the height of the page. I haven't heard of getHeight, and if it's a function you made, give some more code.