Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Unable to display Japanese Currency 'YEN' in pdf using iText 3.0

 
Phani Chaitanya
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I dont know if this is the right forum to post a question about iText API. I coudn't find any relevant forum for iText to post in, so I am posting here.

I am unable to display Japanese currency symbol 'Yen' in my pdf using iText 3.0 jar. I am currently using Adobe reader 7.0.0 to view the pdf. Here is the code snippet im using to display value,

DecimalFormat df = (DecimalFormat) NumberFormat.getCurrencyInstance("ja_JP");
String finalValue = df.format("¥1,000");
PdfPCell cell = new PdfPCell(new Paragraph(finalValue, font));

Euro, Pound, Dollar and some other symbols were displayed fine. But for Yen it just shows a number without any currency symbol.

I tried using Java source code "\u00A5" and it is displaying Yen symbol properly in pdf. So, i guess there is a problem with the way i use iText libraries. Please help me with this.

Regards,
Phani

 
Wendy Gibbons
Bartender
Posts: 1111
Eclipse IDE Oracle VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i found this on nabble
itext-questions@lists.sourceforge.net (for asking questions)
http://itext-general.2136553.n4.nabble.com/ (the archive)
 
Phani Chaitanya
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you for the reply. But I am yet to find a solution to this problem.

 
Wendy Gibbons
Bartender
Posts: 1111
Eclipse IDE Oracle VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I was meaning that may be a better place to post your question, it is pretty specific.
 
Phani Chaitanya
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have now upgraded my adobe reader to latest version available i.e. Adobe Reader X. But still no hope.
 
Phani Chaitanya
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Wendy Gibbons wrote:I was meaning that may be a better place to post your question, it is pretty specific.



I posted the query in that website as suggested.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic