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

Encoding problem on exported PDF from RadHtmlChart

2 Answers 317 Views
ClientExportManager
This is a migrated thread and some comments may be shown as answers.
rd
Top achievements
Rank 1
rd asked on 16 Dec 2015, 01:02 PM

Hi,

We're using 2015.1.225.45  Telerik version to export graphics bar from RADHtmlChart to PDF. We have a javascript handler to export it with the following code:

$find('<%=RadClientExportManager1.ClientID%>').exportPDF($(".RadHtmlChart"));

The graphics bar have some text with accents. On the browser, the text is shown correctly but on the exported PDF, the text with accents has errors. 

You can confirm this comparing the images graphics_bar_browser.png and graphics_bar_PDF.png attached to this thread.

It looks like there's some encoding problem or the font being used does not supports accent characters

Best Regards,

AMBISIG

 

2 Answers, 1 is accepted

Sort by
0
rd
Top achievements
Rank 1
answered on 16 Dec 2015, 01:05 PM

I couldn't attach the images on the previous post so i've done it on this one.

 Best Regards,

AMBISIG

0
Ivan Danchev
Telerik team
answered on 21 Dec 2015, 09:55 AM
Hello,

In order to export content containing special characters (letters with accents in your case) a font supporting Unicode characters has to be added to the application and set to the exported element. Our Export special characters demo shows how this can be done. In it we use the CODE2000 font but other fonts like Arial MS Unicode will work as well.
In your scenario in addition to adding the font to the ClientExportManager's Fonts collection the font has to be set to the Chart labels as well:
<TextStyle FontFamily="CODE2000" />

Regards,
Ivan Danchev
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
ClientExportManager
Asked by
rd
Top achievements
Rank 1
Answers by
rd
Top achievements
Rank 1
Ivan Danchev
Telerik team
Share this question
or