Generating PDF files with JavaScript

后端 未结 6 1300
悲哀的现实
悲哀的现实 2020-11-22 05:45

I’m trying to convert XML data into PDF files from a web page and I was hoping I could do this entirely within JavaScript. I need to be able to draw text, images and simple

6条回答
  •  野的像风
    2020-11-22 06:45

    Another javascript library worth mentioning is pdfmake.

    • pdfmake playground
    • pdfmake on github

    The browser support does not appear to be as strong as jsPDF, nor does there seem to be an option for shapes, but the options for formatting text are more advanced then the options currently available in jsPDF.

提交回复
热议问题