jsPDF Tutorial to Add Chinese Font and Characters inside PDF Document Using Javascript

 

 

I want to add Chinese font in jspdf. But its throwing the warning

“Unable to look up font label for font ‘NotoSansCJKjp’, ‘normal’. Refer to getFontList() for available fonts.”

errors: jsPDF PubSub Error id is undefined TypeError: “id is undefined”

I tried with below link https://www.npmjs.com/package/jspdf-customfonts#install

 

 

I believe to be able to addFont you need first to addFileToVFS it.

 

Leave a Reply