-
Notifications
You must be signed in to change notification settings - Fork 4.8k
Closed
Labels
Description
I have attached the jpg image that generates the error.
var doc = new jsPDF();
doc.addImage(jpgFile, 'JPEG', 0, 0, 150, 150);
Error message in console:
DOMException: Failed to execute 'atob' on 'Window': The string to be decoded is not correctly encoded.
at Object.b.convertStringToImageData (https://unpkg.com/jspdf@1.4.1/dist/jspdf.min.js:49:8077)
at Object.b.addImage (https://unpkg.com/jspdf@1.4.1/dist/jspdf.min.js:49:6374)
at VueComponent.generatePdf (webpack-internal:///146:215:41)
at VueComponent.boundFn [as generatePdf] (webpack-internal:///9:191:14)
at VueComponent.created (webpack-internal:///146:71:14)
at callHook (webpack-internal:///9:2894:21)
at VueComponent.Vue._init (webpack-internal:///9:4559:5)
at new VueComponent (webpack-internal:///9:4727:12)
at createComponentInstanceForVnode (webpack-internal:///9:4241:10)
at init (webpack-internal:///9:4058:45)