wood burning stoves 2.0*
The moose likes Other JSE/JEE APIs and the fly likes Unicode(UTF-8) to PDF using iText Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Java » Other JSE/JEE APIs
Bookmark "Unicode(UTF-8) to PDF using iText" Watch "Unicode(UTF-8) to PDF using iText" New topic
Author

Unicode(UTF-8) to PDF using iText

Satish Kumar Kara
Greenhorn

Joined: Feb 29, 2008
Posts: 8
We are working in web application and it has to support all the language. The purpose of this application is to generate a PDF document of the data submitted by the end user.
The end user can enter data in the following format. (This description is just to make reader understand the situation)

1. He/ she has to enter some data in English and some in local language. And application is not going to validate those and also do not have any constraint which data which language(strongly depends on UTF-8 for web UI). But in PDF we need to show both.
2. User can enter mix of two three languages in single field also. In that case we need to print it as it is.
3. Numeric in all language along with English and special characters also allowed..

I tried one approach to print the data in Hindi + English language. But the following observations was seen
I used the mangal font for hindi..


1. I got all the hindi characters, but not in proper format… eq. It print "hindi" as "hinadi".
2. It ignored all the English characters out of that. but English numeric it printed.

Note: We are storing data in Unicode(utf8) format in oracle database. We are able to get all the data in correct format in web UI.

Please suggest some feasible way to deal with this requirement.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Unicode(UTF-8) to PDF using iText