Problem with Japanese when using 'pdf' button
Problem with Japanese when using 'pdf' button
tranhuuhien1990
Posts: 9Questions: 1Answers: 0
I user 'pdf' button to export datatables data to pdf file, it's work fine. But I get a problem when export japanese, it's not appear in Chrome
This question has an accepted answers - jump to answer
This discussion has been closed.
Answers
It sounds like the font file that pdfmake uses doesn't include the characters you require. There are a number of other threads on this topic in the forum already.
See the pdfmake documentation for how to create your own font file with the required characters.
Allan
Thank you Allan. I forgot vfs_fonts.js. I solved my problem. Here is my way
1. Download font from http://mplus-fonts.osdn.jp/webfonts/general-j/
2. Go to https://www.giftofspeed.com/base64-encoder/ and convert font to base64-encoder
3. Copy it to vfs_fonts.js