javascript - Cordova jsPDF images rendering wrong -


i'm trying add images jspdf turn out scrambled, here's example: example

text , shapes work fine. i've tried many pngs , jpegs, in many formats turn out similar. use same code 1 on 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 pdf save using cordova filesystem. issue here?

thanks in advance

i found solution here

my writer producing corrupt pdfs when images added, can resolved making use of arraybuffer.


Comments

Popular posts from this blog

inversion of control - Autofac named registration constructor injection -

verilog - Systemverilog dynamic casting issues -

ios - Change Storyboard View using Seague -