i used pdfHtml5 but this is not working Korean alphabet
i used pdfHtml5 but this is not working Korean alphabet
turtle85
Posts: 4Questions: 1Answers: 0
when i used that "sExtends": "pdf", "sSwfPath": "js/plugin/datatables/swf/copy_csv_xls_pdf.swf"
pdf file display "한글" --> "??"
and i search this problem and i know this button is not support utf-8
so i change button extend: 'pdfHtml5',
and this pdf file display "한글" --> 'blank'
how can solve i this problem?
This question has accepted answers - jump to:
This discussion has been closed.
Answers
Thanks for your question - however, per the forum rules can you link to a test case showing the issue please. This will allow the issue to be debugged.
Information on how to create a test page, if you can't provide a link to your own page can be found here.
Thanks,
Allan
One other thing - the Flash export (swf) does not, and will not support UTF8 characters. The library it uses doesn't support UTF8 and has long since been abandoned by its author).
You mention
pdfHtml5
in the title, but sExtends and sSwfPath are not options that Buttons use.Allan
thanks for your answer
But I guess you didn't see the body content.
I know that the flash version does not support utf-8.
so i changed to html5 version
here is my code
https://jsbin.com/pocucahizi/1/edit?html,js,console,output
It doesn't seem to support the Korean language.
Can you add Korean to vfs_fonts.js?
Thanks for the test case and clarification. I understand now!
The vfs_fonts file is provided by pdfmake (the library I used to create the PDF). There are instructions on how to create a custom font for pdfmake in their documentation. Its not something I've tried I'm afraid, but it looks relatively straight forward!
Allan
Thank you so much.
I solved that problem.
But I have another question.
How do I hide a specific column when converting to pdf?
Example
Allan
whats the solution you used to solve korean language support? We too have the same issue to be fixed.
You need to create a custom font file that includes the characters that you want. The pdfmake documentation contains information on how to do that.
Allan
hi veena
Here is a solution in my blog
http://blog.naver.com/seilw/220847549664