create PDF with Unicode using jsPDF

拜拜、爱过 提交于 2019-12-23 01:51:54

问题


I want save a PDF with Sinhala unicode. but when try to convent data gives me junk data something like this "ʶ±Ê°ÀoÒ". If I cannot do this in jsPDF suggest me a another way but I do not want to use a screenshot like html2canvas.

let doc = new jsPDF('landscape'); 
doc.text(15, 30, 'ස්තුතියි');
doc.save("new.pdf");

来源:https://stackoverflow.com/questions/55617814/create-pdf-with-unicode-using-jspdf

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!