Jump to content
We've recently updated our Privacy Statement, available here ×

issue with reginal language in PDF in java spring web application


rupali.koshti
Go to solution Solved by rupali.koshti,

Recommended Posts

I have different issue. when I run my pdf report having "Marathi" language unicode characters through JasperReport tool, it runs just fine. When I run it through java code, although after applying fonts extension, characters are not showing properly. characters having joints are not showing up properly although they are saved properly in DB (MySql) and displaying well as expected in jsp/html. e.g. "पर्वती रॉ वॉटर" (correct one) getting displayed as "पर् वती रॉ वॉटर" (incorrect, ignore space that I included as this message html converting it to right ) in PDF from java. Will you please help me here. This is killing me for days now.

Link to comment
Share on other sites

  • Replies 8
  • Created
  • Last Reply

Top Posters In This Topic

Thanks for reply,


but it's doesn't work .
 
I uesd maven dependancy of jasperreports 6.2.0 in my maven+spring web application :
 
 <dependency>
    <groupId>net.sf.jasperreports</groupId>
    <artifactId>jasperreports</artifactId>
    <version>6.2.0</version>
</dependency>
 
I have attached jrxml file and it's font extension with Identity-H PDF encoding. I am using Arial Unicode MS font. for that I am using .ttf file of arialUnicodeMS but also it's does not work.
 
I wants to access it with my java spring web application, marathi language in pdf is not showing properly.
 please, reply urgently.
 

 

Link to comment
Share on other sites

Thanks for reply,


but it's doesn't work .
 
I uesd maven dependancy of jasperreports 6.2.0 in my maven+spring web application :
 
 <dependency>
    <groupId>net.sf.jasperreports</groupId>
    <artifactId>jasperreports</artifactId>
    <version>6.2.0</version>
</dependency>
 
I have attached jrxml file and it's font extension with Identity-H PDF encoding. I am using Arial Unicode MS font. for that I am using .ttf file of arialUnicodeMS but also it's does not work.
 
I wants to access it with my java spring web application, marathi language in pdf is not showing properly.
 please, reply urgently.

 

Link to comment
Share on other sites

I made a test with Arial Unicode MS in 6.2.0 and "पर्वती रॉ वॉटर" was displayed properly in PDF, see attached screenshot.

Reproducing the problem that you are seeing requires a detailed (and self contained) test case.

Regards,

Lucian

Link to comment
Share on other sites

thanks Lucian,

I think you are giving me screenshot of TIBCO Jaspersoft studio export to pdf file.it is working correctly in designer studio.

But, when I export jrxml file through java code  :

printFile = JasperFillManager.fillReportToFile(sourceFile, parametersMap,connectionForJasper);

JasperExportManager.exportReportToPdfFile(printFile,pdfFile);

"पर्वती रॉ वॉटर" (correct one) getting displayed as "पर् वती रॉ वॉटर" .

In Java spring + maven using dependancy of 

<dependency>
    <groupId>net.sf.jasperreports</groupId>
    <artifactId>jasperreports</artifactId>
    <version>6.2.0</version>
</dependency>
 
Plz, give me solution when using through Java code.
 

 

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...