尝试将多个PNG添加到pdf。第一张图片正常呈现,但是当我添加第二张图片时,它始终抛出以下错误:
win KO win TKO win UD
0 0 2 2
1 1 1 2
2 1 3 0
3 0 2 2
4 0 0 4
VM324 jspdf.debug.js:16164 Uncaught Error: Incomplete or corrupt PNG file
at new PNG (VM324 jspdf.debug.js:16164)
at Object.jsPDFAPI.processpNG (VM324 jspdf.debug.js:8596)
at Object.jsPDFAPI.addImage (VM324 jspdf.debug.js:4596)
at report_gen.js:40
var logo = new Image()
logo.src = "Assets/SLT_logo.png"
var icon = new Image()
icon.src = "Assets/icon_1.png"