使用jsPDF将多个PNGS添加到PDF的问题

尝试将多个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"

lilipppp 回答:使用jsPDF将多个PNGS添加到PDF的问题

暂时没有好的解决方案,如果你有好的解决方案,请发邮件至:iooj@foxmail.com
本文链接:https://www.f2er.com/3122453.html

大家都在问