jsPDF html method always fails

前端 未结 1 1064
迷失自我
迷失自我 2020-12-11 13:43

I am trying to generate a PDF from an html element (a div) with some content:

1条回答
  •  生来不讨喜
    2020-12-11 13:47

    The problem is most likely the version of html2canvas you used. html2canvas 0.4.1 is not going to work. It should be html2canvas 1.0.0-alpha.11 or higher. However, current version, html2canvas 1.0.0-rc.3 doesn't work either, it also gives me a blank page. At least html2canvas 1.0.0-alpha.12 still works for me.

    
    
    
    
    

    Update: the latest version that works for me is html2canvas v1.0.0-rc.1

    0 讨论(0)
提交回复
热议问题