2
votes

I had a Grid that contain a chinese language. The problem occur when I want to export the data into PDF. It seem appear a weird characters (image below) or something like this . Can anyone help me to solve the issue?

Here I provide a DEMO in dojo

enter image description here

2

2 Answers

2
votes

Found a solution, using kendo.pdf.defineFont

  1. I need to download Arial Unicode MS font then place into a folder.
  2. By using defineFont I used this code.

<script>
    kendo.pdf.defineFont({
        "Arial Unicode MS"  : " +your url path+ / +font folder location+ "
        //eg. "Arial Unicode MS"  : "myUrl/fonts/arialunicodems.ttf"
    });
</script>

Hope this can help.

0
votes

As per documentation, https://demos.telerik.com/kendo-ui/grid/pdf-export for unicode support you need to use custom fonts. The code which you shared is in online is not loading.