This is a migrated thread and some comments may be shown as answers.

Pdf export problem with scandinavian characters and € -sign

1 Answer 88 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Antti
Top achievements
Rank 1
Antti asked on 24 Jun 2015, 07:43 AM

Hi, 

I am trying to export my grid to pdf with characters like äö and €.These characters are showing fine in the grid. 

After I export the grid to pdf, these characters are shown as boxes or as empty string. I have tried different fonts like with no success. 

Any suggestions how to make this work?

- Antti

 

1 Answer, 1 is accepted

Sort by
0
Antti
Top achievements
Rank 1
answered on 25 Jun 2015, 12:31 PM

Hi,

I added font declarations for the pdf like in the demo:

kendo.pdf.defineFont({
                "DejaVu Sans": "http://cdn.kendostatic.com/2014.3.1314/styles/fonts/DejaVu/DejaVuSans.ttf",
                "DejaVu Sans|Bold": "http://cdn.kendostatic.com/2014.3.1314/styles/fonts/DejaVu/DejaVuSans-Bold.ttf",
                "DejaVu Sans|Bold|Italic": "http://cdn.kendostatic.com/2014.3.1314/styles/fonts/DejaVu/DejaVuSans-Oblique.ttf",
                "DejaVu Sans|Italic": "http://cdn.kendostatic.com/2014.3.1314/styles/fonts/DejaVu/DejaVuSans-Oblique.ttf"
            });

 and now it's working as expected.

 - Antti

Tags
Grid
Asked by
Antti
Top achievements
Rank 1
Answers by
Antti
Top achievements
Rank 1
Share this question
or