Encoding problem on exported PDF from RadHtmlChart

3 posts, 0 answers
  1. rd
    rd avatar
    20 posts
    Member since:
    Jun 2007

    Posted 16 Dec 2015 Link to this post

    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. rd
    rd avatar
    20 posts
    Member since:
    Jun 2007

    Posted 16 Dec 2015 in reply to rd Link to this post

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

     Best Regards,

    AMBISIG

  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Ivan Danchev
    Admin
    Ivan Danchev avatar
    830 posts

    Posted 21 Dec 2015 Link to this post

    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
Back to Top