Are you using the latest version of jsPDF?
I guess so.. I am using the latest version of html2pdf.js which is using your package and the error seems to come from your package
Have you tried using jspdf.debug.js?
No !
Steps to reproduce
Generate pdf using html2pdf.js and give the html the exact same size as a page
What I saw
I am trying to generate a document that has a footer, and I am calculating the blank height needed so it can be placed at the bottom of the page.
During the render, I have the following issue:
Error: Supplied data is not a JPEG
But i am not using any image in my injected html.
What I expected
I was expecting a clean, well setted footer. I have to say that it is working if I set the height 1 pixel smaller than it should, but since my footer is a full width non-white block, a small white line underneath it is pretty visible and pretty ugly.