Skip to main content



      Home
Home » Archived » BIRT » Birt Create a Pdf report can't show correct chinese word
Birt Create a Pdf report can't show correct chinese word [message #14214] Fri, 04 March 2005 12:28 Go to next message
Eclipse UserFriend
Originally posted by: tksx.msn.com

hi:
i just testing birt function, that's good. but i can't see chinese
word in pdf view, when i input a chinese word in text labe.
Re: Birt Create a Pdf report can't show correct chinese word [message #15249 is a reply to message #14214] Mon, 07 March 2005 14:20 Go to previous messageGo to next message
Eclipse UserFriend
Rick,

BIRT uses FOP to generate PDF output, so you can consult with FOP
documents for using Chinese characters. Using Chinese character in FOP
needs some customization, such as:

1) Create a font metrix file for the font types you used
2) Define the font used by FOP
3) Embedded the font into PDF

Font configurations are described in FOP FAQ,

http://xml.apache.org/fop/faq.html#pdf-characters-menu
http://xml.apache.org/fop/fonts.html
http://xml.apache.org/fop/configuration.html

We might integrate FOP configurations into BIRT configuration. But before
that is done, you may have to customize FOP by yourself.

Stanley Wang
BIRT Engine



Rick_Zhang wrote:

> hi:
> i just testing birt function, that's good. but i can't see chinese
> word in pdf view, when i input a chinese word in text labe.
Re: Birt Create a Pdf report can't show correct chinese word [message #18541 is a reply to message #15249] Tue, 15 March 2005 17:44 Go to previous messageGo to next message
Eclipse UserFriend
I know the license is wrong for this particular product but a CSS based tool
like Prince looks like an interesting alternative to FOP:

http://www.yeslogic.com/

See also:

http://developers.slashdot.org/article.pl?sid=05/01/20/14242 20


--
Ed Burnette
www.eclipsepowered.org
Re: Birt Create a Pdf report can't show correct chinese word [message #22230 is a reply to message #18541] Tue, 22 March 2005 22:29 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: tksx.msn.com

Ed Burnette 写道:
> I know the license is wrong for this particular product but a CSS based tool
> like Prince looks like an interesting alternative to FOP:
>
> http://www.yeslogic.com/
>
> See also:
>
> http://developers.slashdot.org/article.pl?sid=05/01/20/14242 20
>
>
How Can I Add chinese in BIRT?

I had add one Font in Fop,and can use Fop test to convert a
Chinese pdf file. But the question is how can I map the new Font to BIRT
Plugin.
Re: Birt Create a Pdf report can't show correct chinese word [message #22269 is a reply to message #22230] Wed, 23 March 2005 00:58 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: michael.lee.kmb.hk

Hi,
I encountered similar problem. I have just installed the stable build
(S20050314). According to the release note, we can embed font by modify
birt_fop.xml.

I extracted birt_fop.xml from foEmitter.jar and added followings lines:

<font metrics-file="c:\fo-fonts\simsun.xml"
embed-file="c:\windows\fonts\simsun.ttc" kerning="yes">
<font-triplet name="SimSun" style="normal" weight="normal"/>
<font-triplet name="SimSun" style="normal" weight="bold"/>
<font-triplet name="SimSun" style="italic" weight="normal"/>
<font-triplet name="SimSun" style="italic" weight="bold"/>
</font>

I have downloaded fop-0.20.5 and created the metrics-file using the
TTFReader. Also i use the modified birt_fop.xml as configure file (using
-c) to process FO file which contains chinese text using font "SimSun".
The output PDF is okay and have the font embedded.

Then i recreate the foEmitter.jar with the modified birt_fop.xml and
replaced the one under folder
viewer\WEB-INF\plugins\org.eclipse.birt.report.engine.emitte r.fo.
Afterward, I preview my report with chinese characters retrieved from
MySQL. (i used the font SimSun in report design) Preview in HTML is okay
and chinese can be displayed. However, when preview with PDF, the chinese
characters displayed as #.

I saved the PDF and open with adobe reader and found the font SimSun not
embedded.

What have i do wrong?

Regards,
Michael
Re: Birt Create a Pdf report can't show correct chinese word [message #22303 is a reply to message #22269] Wed, 23 March 2005 01:02 Go to previous message
Eclipse UserFriend
Originally posted by: michael.lee.kmb.hk

How can i get the FO file generated? I have tried to call the viewer with
formt=FO but the result is HTML.

If i can see the FO file, i can better analysis the problem.

Regards,
Michael
Previous Topic:about parameter group
Next Topic:input parametes and some suggestions
Goto Forum:
  


Current Time: Sun Apr 27 00:01:09 EDT 2025

Powered by FUDForum. Page generated in 0.02903 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top