Export to PDF throwing error

12 posts, 0 answers
  1. Ravi Kirpane
    Ravi Kirpane avatar
    7 posts
    Member since:
    Mar 2009

    Posted 25 Mar 2010 Link to this post

    We have a multilingual report that generates report in English and Mandarin (Chinese).

    Initial generation of the reports works well. The reporting control displays the reports in both languages in html format. When we attempt to export into pdf following error occurs

    [NotSupportedException: Font Arial Unicode MS 12 Bold is not supported.]
       Telerik.Reporting.Pdf.Fonts.TrueType.FontReader.GetFontData(Font font, Boolean& isTTC) +466
    .....


    Additionally though the export to rtf;excel works excellent in either of the languange. We are using resx files for multilingual capabilities.

    Any help would be greatly appreciated. Struggling with this issue for a certain time now.
  2. Steve
    Admin
    Steve avatar
    10941 posts

    Posted 29 Mar 2010 Link to this post

    Hi Ravi Kirpane,

    I have not been able to reproduce this with a sample project on my end, so I have attached the exported PDF file (using FontEmbedding=Subset) along with the MS Arial Unicode installed on my machine. Try removing yours, install the attached one, reboot your machine and run my sample project to test if it works.

    Best wishes,
    Steve
    the Telerik team

    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 Public Issue Tracking system and vote to affect the priority of the items.
  3. DevCraft banner
  4. Ravi Kirpane
    Ravi Kirpane avatar
    7 posts
    Member since:
    Mar 2009

    Posted 29 Mar 2010 Link to this post

    Thank you for investing time into this problem We are struggling for a long time.

    When you suggest that we install the attached unicodes..... Request guidance on how to go about?

    I see .ttf file attached.
  5. Ravi Kirpane
    Ravi Kirpane avatar
    7 posts
    Member since:
    Mar 2009

    Posted 29 Mar 2010 Link to this post

    Ignore my previous response.
  6. Ravi Kirpane
    Ravi Kirpane avatar
    7 posts
    Member since:
    Mar 2009

    Posted 29 Mar 2010 Link to this post

    Ok I replaced the font, as suggested.

    Your sample works perfectly fine. But even the sample export from the following site 
    http://demos.telerik.com/reporting/report-book/demo.aspx

    into pdf displays squares.
     
    Additionally, the pdf properties page has a "font" section. In that section, it does not list Arial unicode as one of the fonts. Hopefully that is significant information for us to come to a resolution.
  7. Steve
    Admin
    Steve avatar
    10941 posts

    Posted 30 Mar 2010 Link to this post

    Hello Ravi,

    This happens due to the font you're using, namely if we take the ProductCatalog report (it is part of the ReportBook demo you pointed us to) as example, the description textbox is set to use Arial font, which does not support Chinese characters. We have never thought of that until you brought that to our attention and we would log this in our todo list for updating.
    The resolution is using font that supports Chinese characters, for example Arial Unicode and this is exactly what we're going to do to resolve this.

    Best wishes,
    Steve
    the Telerik team

    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 Public Issue Tracking system and vote to affect the priority of the items.
  8. Ravi Kirpane
    Ravi Kirpane avatar
    7 posts
    Member since:
    Mar 2009

    Posted 30 Mar 2010 Link to this post

    To our observation the Arial Unicode is not resolving the issue if the data is triggered by resx files.

    We would be very interested in the solution. Please keep us posted.
  9. Steve
    Admin
    Steve avatar
    10941 posts

    Posted 02 Apr 2010 Link to this post

    Hi Ravi,

    There is some misunderstanding. If you take a look at the chineselocalization project I've attached in my previous post, you would notice that it uses .resx files for the localization (as it should!).

    Regards,
    Steve
    the Telerik team

    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 Public Issue Tracking system and vote to affect the priority of the items.
  10. John
    John avatar
    21 posts
    Member since:
    Mar 2010

    Posted 24 Sep 2010 Link to this post

    Hi

    now i get the same problem too.
    I download your project and try to Export the Chinese report .
    but still jump the error message below.
    Font Arial Unicode MS 10 Regular is not supported.
    ...
    [NotSupportedException: Font Arial Unicode MS 10 Regular is not supported.]
       Telerik.Reporting.Pdf.Fonts.TrueType.FontReader.GetFontData(Font font, Boolean& isTTC) +786
       Telerik.Reporting.Pdf.Fonts.TrueType.TrueTypeDescriptor..ctor(Font gdiFont) +448
       Telerik.Reporting.Pdf.Fonts.TrueType.TrueTypeDescriptor..ctor(PdfFont font) +68
       Telerik.Reporting.Pdf.PdfFontTable.GetDescriptor(PdfFont font) +261
    ...
    ...

    is there any idea to deal with this?
    I really need this font type work.
    thanks for answer

    John
  11. Steve
    Admin
    Steve avatar
    10941 posts

    Posted 24 Sep 2010 Link to this post

    Hi dgnzj chou,

    We've made various improvements to the font handling in PDF in the latest Q2 SP1 version, so please upgrade to it and see if the problem persists.
    Additionally have in mind the Font Requirements outlined in the Design Considerations for PDF Rendering help article.

    Best wishes,
    Steve
    the Telerik team
    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 Public Issue Tracking system and vote to affect the priority of the items
  12. Jans
    Jans avatar
    3 posts
    Member since:
    Jun 2014

    Posted 28 Jun in reply to Steve Link to this post

    Hi! we're using Telerik Reporting Q2 2015 SP1 (version 9.1.15.731) 

    We have a similar issue with regards using third-party fonts which is throwing the same exception error about the font is not supported. It is running on two report servers and one of those server is failing when trying to generate the PDF.

     The third-party font is installed manually by copying it to the system Font folder. The device information for Font Embedding is already to Full just to make sure the installed third party font is embedded in the output PDF.

    I was wondering if this is still a known issue?

     

     

  13. Katia
    Admin
    Katia avatar
    309 posts

    Posted 29 Jun Link to this post

    Hello AJ,

    This is not a known issue. Check the font requirements listed in the Design Considerations for PDF Rendering and double check that the server machine has the font installed on it. Note, that Telerik Reporting works only with TrueType fonts -Font is missing in report designers...".

    Also, test upgrading to the newer version of Telerik Reporting to check if this issue was fixed in later releases.

    To provide you further suggestions please send us a sample project and information regarding the font you use in a support ticket.


    Regards,
    Katia
    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
DevCraft banner