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

Encoding in the pdf when mvc charts are exported

1 Answer 161 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Mateusz
Top achievements
Rank 1
Mateusz asked on 15 Jan 2016, 10:41 AM
Hello,
There is a problem regarding encoding in the pdf when mvc charts are exported. Does exist any solution to show none ASCII chars in the pdf? I've tried to set some fonts but it's not working unfortunately.
eg. 
    kendo.pdf.defineFont({
        "Open Sans": "/fonts/OpenSans-Regular.ttf",
        "Open Sans|Bold": "/fonts/OpenSans-Bold.ttf",
        "Open Sans|Bold|Italic": "/fonts/OpenSans-BoldItalic.ttf",
        "Open Sans|Italic": "/fonts/OpenSans-Italic.ttf"
    });

or 
/* Pdf font */
@font-face {
  font-family: "Open Sans";
  src: url("../fonts/OpenSans-Regular.ttf") format("truetype");
}

P.S. Export from Grid looks good (after I've added @font-face style).
Please see attached files.

Thanks a lot,
Hello,
There is a problem regarding encoding in the pdf when mvc charts are exported. Does exist any solution to show none ASCII chars in the pdf? I've tried to set some fonts but it's not working unfortunately.
eg. 
    kendo.pdf.defineFont({
        "Open Sans": "/fonts/OpenSans-Regular.ttf",
        "Open Sans|Bold": "/fonts/OpenSans-Bold.ttf",
        "Open Sans|Bold|Italic": "/fonts/OpenSans-BoldItalic.ttf",
        "Open Sans|Italic": "/fonts/OpenSans-Italic.ttf"
    });
 
or 
/* Pdf font */
@font-face {
  font-family: "Open Sans";
  src: url("../fonts/OpenSans-Regular.ttf") format("truetype");
}
 
P.S. Export from Grid looks good (after I've added @font-face style).
Please see attached files.
 
Thanks a lot,
Hello,
There is a problem regarding encoding in the pdf when mvc charts are exported. Does exist any solution to show none ASCII chars in the pdf? I've tried to set some fonts but it's not working unfortunately.
eg. 
    kendo.pdf.defineFont({
        "Open Sans": "/fonts/OpenSans-Regular.ttf",
        "Open Sans|Bold": "/fonts/OpenSans-Bold.ttf",
        "Open Sans|Bold|Italic": "/fonts/OpenSans-BoldItalic.ttf",
        "Open Sans|Italic": "/fonts/OpenSans-Italic.ttf"
    });
 
or 
/* Pdf font */
@font-face {
  font-family: "Open Sans";
  src: url("../fonts/OpenSans-Regular.ttf") format("truetype");
}
 
P.S. Export from Grid looks good (after I've added @font-face style).
Please see attached files.
 
Thanks a lot,
Hello,
There is a problem regarding encoding in the pdf when mvc charts are exported. Does exist any solution to show none ASCII chars in the pdf? I've tried to set some fonts but it's not working unfortunately.
eg. 
    kendo.pdf.defineFont({
        "Open Sans": "/fonts/OpenSans-Regular.ttf",
        "Open Sans|Bold": "/fonts/OpenSans-Bold.ttf",
        "Open Sans|Bold|Italic": "/fonts/OpenSans-BoldItalic.ttf",
        "Open Sans|Italic": "/fonts/OpenSans-Italic.ttf"
    });
 
or 
/* Pdf font */
@font-face {
  font-family: "Open Sans";
  src: url("../fonts/OpenSans-Regular.ttf") format("truetype");
}
 
P.S. Export from Grid looks good (after I've added @font-face style).
Please see attached files.
 
Thanks a lot,

1 Answer, 1 is accepted

Sort by
0
Milena
Telerik team
answered on 19 Jan 2016, 08:48 AM
Hello,

Unfortunatelly, non-ASCII characters are unsupported with the standard PDF fonts.
Additional information about PDF export could be found here.

Regards,
Milena
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
General Discussions
Asked by
Mateusz
Top achievements
Rank 1
Answers by
Milena
Telerik team
Share this question
or