jsPDF server side (node.js) usage using node-jspdf

前端 未结 5 535
眼角桃花
眼角桃花 2020-12-10 16:38

I am actually trying to include jspdf in server side and then use it for simple pdf generation(simply the text \"Hello world!\")(Go to the url- get the pdf localhost:8080).

5条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-12-10 17:07

    Download your jspdf folder from parallax jspdf. After installing jspdf ( "npm install jspdf" ) you get the jspdf folder inside node-modules. Go inside it and replace the jspdf.min.js by the jspdf.amd.min.js present in the /dist folder inside the jspdf downloaded from parallax

提交回复
热议问题