Save Korean(or chinese/japnese) to PDF problem, please help.

weiwei
edited 4:08PM in FastReport .NET
Repro:
* Create a new Report with the Report Designer application
* Add a label with Unicode characters (I tried to use korean and chinese )
* Preview the report in the Report Designer application.(no problem)
* Save the report to PDF
* Open the PDF and the unicode characters become big squares.

I have attached an image. the top is in designer and the bottom is in PDF viewer.

unicode.png

Comments

  • edited 4:08PM
    Hello,

    In the text object, you should use the Korean font instead of Arial.
  • weiwei
    edited 4:08PM
    AlexTZ wrote: »
    Hello,

    In the text object, you should use the Korean font instead of Arial.


    Hi Alex, please help me out, I tested this again.
    If I check embedded fonts when exporting to PDF, report designer crashes with an error.
    if I don't check embedded fonts then, when I open the pdf file in Adobe Viewer, I got an error from adobe reader saying cannot find or create the font "font name".

    the font is available in system font.
  • weiwei
    edited 4:08PM
    AlexTZ wrote: »
    Hello,

    In the text object, you should use the Korean font instead of Arial.

    It might be a bug Alex,

    in ExportTTF.cs line 2367,
    GlyphWidth = (int) (horizontal_metrix_table[idk].advanceWidth * 1000 / font_header.unitsPerEm);

    throws out of index exception, i changed idk to length, it seems to work now, can you please confirm this change? thx
  • edited 4:08PM
    Hello,

    Could you send me the report file (.frx) and the prepared report (.fpx, save from preview) to tz@fast-report.com?

Leave a Comment

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.