not able to display Chinese and korean language in my pdf.

Hi Team, 

as per my requirement i need to print Chinese and Korean languages  in my pdf. So by using Arial Uni code MS  font jar am able to print. later i have exported ArialUnicode font as jar through Jasper tool to to add in application. But our company not allowing to add external jars in our application, we need to add jars through from maven Repository only. so i can not use ArialUnicode jar (Exported through jasper tool) so due to this  am trying to find out Maven Dependency for this. But not able to find dependency. so kindly let me know is there any other options are there?

 

 

Thanks

T.Sreedhar

tsreedhar63's picture
Joined: Sep 20 2022 - 10:34pm
Last seen: 2 days 13 hours ago

5 Answers:

You can create the font jar file yourself from Jasper Studio and then add it to your local maven repository.  This is what I did for my project that required Arial font in the PDF.

1. Go into preferences | Jaspersoft Studio | Fonts

2. Add a new item for your ArialUnicode

3. Configure the font

4. Finish

5. Export the jar file

jgust's picture
2592
Joined: Jun 10 2010 - 6:39am
Last seen: 5 hours 19 min ago

exactly i did same. but our company people not allowing to add external jars through maven. only through central maven repository we need to add . so  looking for maven dependency.

tsreedhar63's picture
Joined: Sep 20 2022 - 10:34pm
Last seen: 2 days 13 hours ago

Is this something that can be useful to you?
https://mvnrepository.com/artifact/com.itextpdf.android/font-asian-android/7.2.3
 

<!-- https://mvnrepository.com/artifact/com.itextpdf.android/font-asian-android -->
<dependency>
    <groupId>com.itextpdf.android</groupId>
    <artifactId>font-asian-android</artifactId>
    <version>7.2.3</version>
</dependency>


jgust's picture
2592
Joined: Jun 10 2010 - 6:39am
Last seen: 5 hours 19 min ago

HI, what is the font name we should  use in jrxml file to display Chinese and Korean language.

tsreedhar63's picture
Joined: Sep 20 2022 - 10:34pm
Last seen: 2 days 13 hours ago

Looks like sejda has a CJK font in their repo.

https://mvnrepository.com/artifact/org.sejda/sejda-optional-fonts/3.2.85

<!-- https://mvnrepository.com/artifact/org.sejda/sejda-optional-fonts -->
<dependency>
    <groupId>org.sejda</groupId>
    <artifactId>sejda-optional-fonts</artifactId>
    <version>3.2.85</version>
</dependency>

CJK font in Jar: NotoSansCJKtc-Regular.ttf

jgust's picture
2592
Joined: Jun 10 2010 - 6:39am
Last seen: 5 hours 19 min ago
Feedback