i used pdfHtml5 but this is not working Korean alphabet

i used pdfHtml5 but this is not working Korean alphabet

turtle85turtle85 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?

Answers

  • allanallan Posts: 63,441Questions: 1Answers: 10,459 Site admin

    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

  • allanallan Posts: 63,441Questions: 1Answers: 10,459 Site admin
    Answer ✓

    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

  • turtle85turtle85 Posts: 4Questions: 1Answers: 0
    edited October 2016

    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?

  • allanallan Posts: 63,441Questions: 1Answers: 10,459 Site admin
    Answer ✓

    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

  • turtle85turtle85 Posts: 4Questions: 1Answers: 0
    edited October 2016

    Thank you so much.
    I solved that problem.
    But I have another question.
    How do I hide a specific column when converting to pdf?

  • allanallan Posts: 63,441Questions: 1Answers: 10,459 Site admin
    Answer ✓

    Example :smile:

    Allan

  • veenaveena Posts: 1Questions: 0Answers: 1
    Answer ✓

    whats the solution you used to solve korean language support? We too have the same issue to be fixed.

  • allanallan Posts: 63,441Questions: 1Answers: 10,459 Site admin
    Answer ✓

    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

  • turtle85turtle85 Posts: 4Questions: 1Answers: 0
    edited November 2016

    hi veena
    Here is a solution in my blog
    http://blog.naver.com/seilw/220847549664

This discussion has been closed.