Export(to pdf) does not support Chinese characters?

9 posts, 0 answers
  1. randall su
    randall su avatar
    2 posts
    Member since:
    Jun 2012

    Posted 24 Dec 2009 Link to this post

    hello
    I have a report and have Chinese characters  when i choose the export to pdf . the pdf  is generated but the Chinese characters are  shown abnormal .

        eg: 
    So, instead of what I would expect:
    "中文12"

    I see this:
    " 􀀀􀀀12" 
    is there a way to fix this?
    randall
  2. Steve
    Admin
    Steve avatar
    10941 posts

    Posted 04 Jan 2010 Link to this post

    Hi randall su,

    The problem is most probably due to the font you have specified for the textbox items. This font should support all foreign characters you would be using in your report. For example you can change the font you use to MS Arial Unicode font, which supports wide varieties of characters. However note that Arial Unicode is around 23 Mb and by default the exported pdf file from the report would embed the whole font, so that it is readable on a machine that does not have it installed. This behavior however is controlled by the FontEmbedding device setting and can be changed to Subset or None. Specifying the Subset option will embed only font glyphs that are used, thus reducing output file size while maintaining portability, while specifying None would not embed that font at all (i.e. the user that is going to read that pdf should have Arial Unicode installed on his machine. You can learn more about altering these values from the Configuring Telerik Reporting Config Section help article.

    Greetings,
    Steve
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  3. DevCraft banner
  4. Bob
    Bob avatar
    27 posts
    Member since:
    May 2007

    Posted 17 Dec 2013 Link to this post

    Steve (or whoever),

    I have this problem with Reporting.  I have Chinese characters stored in the MS SQL database and when I create a report the characters display in the Web viewer correctly.  However, when I try to print or export to PDF the characters do not show properly.  If the characters show properly in the web application and in the viewer, does this mean that the Unicode font is installed on my machine?

    Also, what can I set to have the PDF file generate the characters properly.

    Thanks in advance.

    Bob
  5. Squall
    Squall avatar
    174 posts
    Member since:
    Feb 2011

    Posted 19 Dec 2013 Link to this post

    Hi, if you have set non unicode font the browsers fallback to an unicode font. However the PDF viewer can't do that, so you have to use unicode font like Arial Unicode MS.
  6. Bob
    Bob avatar
    27 posts
    Member since:
    May 2007

    Posted 19 Dec 2013 Link to this post

    Squall,

    I have changed the font for the individual text boxes in the Telerik report to use the unicode font.  When I generate the PDF for this report on my desktop in the IDE, the PDF does generate the proper chinese characters.  Also, when I run the web app and display the report locally on my desktop and create the PDF, it also generates the chinese characters.

    However, when I deploy the web app on my server, the created PDF still does not generate the chinese characters properly.  I thought installing the unicode font on the server would solve the problem, but it hasn't.

    Can you suggest something I might be missing here to get this to work?

    Thanks in advance.

    Bob
  7. Stef
    Admin
    Stef avatar
    3047 posts

    Posted 21 Dec 2013 Link to this post

    Hi Bob,

    Please take a look at our Font Requirements section in the Design Considerations for PDF Rendering help article.

    I hope this information helps you.

    Regards,
    Stef
    Telerik

    New HTML5/JS REPORT VIEWER with MOBILE AND TOUCH SUPPORT available in Telerik Reporting Q3 2013! Get the new Reporting version from your account or download a trial.

  8. Bob
    Bob avatar
    27 posts
    Member since:
    May 2007

    Posted 22 Dec 2013 Link to this post

    Stef,

    I have already looked at the documentation you suggested I read previously and I cannot garner anything further from this.  As I mentioned, the export to PDF works in development but when I publish to the server, the PDF does not export properly (even when running from my same desktop as the web client).

    This is confusing to me.  Is there something that needs to be installed on the server for this to work properly?

    Thanks in advance.

    Bob
  9. Stef
    Admin
    Stef avatar
    3047 posts

    Posted 24 Dec 2013 Link to this post

    Hello Bob,

    Please test to restart the machine after installing the font, so it can be registered by the running application. For more details, please take a look at the following forum discussion: Install new font and need to restart the server.

    Regards,
    Stef
    Telerik

    New HTML5/JS REPORT VIEWER with MOBILE AND TOUCH SUPPORT available in Telerik Reporting Q3 2013! Get the new Reporting version from your account or download a trial.

  10. Bob
    Bob avatar
    27 posts
    Member since:
    May 2007

    Posted 25 Dec 2013 Link to this post

    Stef,

    Thank you, restarting the server did the trick.  I thought I had already restarted but I guess not.

    Thanks again!!

    Bob
Back to Top
DevCraft banner