I'm trying to add images to my jsPDF but they all turn out scrambled, here's an example: example
Text and shapes work just fine. I've tried many pngs and jpegs, in many formats but they all turn out similar. I use the same code as the one on the jsPDF main site: var imgData = 'data:image/jpeg;base64,...' var doc = new jsPDF()
doc.text(35, 25, 'HELLO')
doc.addImage(imgData, 'JPEG', 15, 40, 180, 160)
After creating the pdf i save it using the Cordova filesystem. What could be the issue here?
Thanks in advance