dontbannedmeagain
dontbannedmeagain

Reputation: 480

Export to PDF with Chinese languages

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

Upvotes: 2

Views: 2348

Answers (2)

dontbannedmeagain
dontbannedmeagain

Reputation: 480

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.

Upvotes: 2

Senthil
Senthil

Reputation: 2246

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.

Upvotes: 0

Related Questions