aspose file tools*
The moose likes Java in General and the fly likes Unable to display Japanese Currency 'YEN' in pdf using iText 3.0 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "Unable to display Japanese Currency Watch "Unable to display Japanese Currency New topic
Author

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

Phani Chaitanya
Greenhorn

Joined: Jan 16, 2012
Posts: 9
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

Joined: Oct 21, 2008
Posts: 1106

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

Joined: Jan 16, 2012
Posts: 9
Thank you for the reply. But I am yet to find a solution to this problem.

Wendy Gibbons
Bartender

Joined: Oct 21, 2008
Posts: 1106

I was meaning that may be a better place to post your question, it is pretty specific.
Phani Chaitanya
Greenhorn

Joined: Jan 16, 2012
Posts: 9
I have now upgraded my adobe reader to latest version available i.e. Adobe Reader X. But still no hope.
Phani Chaitanya
Greenhorn

Joined: Jan 16, 2012
Posts: 9
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Unable to display Japanese Currency 'YEN' in pdf using iText 3.0
 
Similar Threads
Problem in setting up height in PDF Header using Itext
iText PDF - Setting Page Magnification?
Localized Currency formatting issue
yen sign and backslash
Output Formatting