wood burning stoves 2.0*
The moose likes Other Open Source Projects and the fly likes How to convert pdf in jsp page, which have the arabic data Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Other Open Source Projects
Bookmark "How to convert pdf in jsp page, which have the arabic data" Watch "How to convert pdf in jsp page, which have the arabic data" New topic
Author

How to convert pdf in jsp page, which have the arabic data

zita lakshmi
Ranch Hand

Joined: Nov 13, 2009
Posts: 37
Hi


I have the requirement to convert jsp file into pdf format, that jsp file have the arabic and english data. I tried to include itext.jar and using for the following code




In this code convert the pdf format, But i not accept arabic data.

The pdf Form Output is WELCOME

I need help for you, Please help me how can i convert pdf format include arabic data in jsp page.


Thanks in Advance

Regards
Seethalakshmi
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41874
    
  63
It's using the default font, which most likely does not have those characters. See this for some examples.


Ping & DNS - my free Android networking tools app
zita lakshmi
Ranch Hand

Joined: Nov 13, 2009
Posts: 37

Hi

Thanks for your reply. I can't view your example link page. So please reply me some sample format.

And also i need help to you, how i convert the mysql data report in pdf report through jsp program.

It's possible or not. guide me some arabic font format using in jsp.

Please help me.
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41874
    
  63
I'm not sure why you can't access that page, but all it shows is just how to set fonts using iText - you can find many examples of that on the web (like in http://faq.javaranch.com/java/ItextExample), and of course by reading the iText javadocs.

Let's keep this question about iText and font usage. Please start a new topic about creating reports; be sure to mention whether the problem is retrieving the data from the DB, creating a PDF report from that data, or something else. You may also want to check out reporting solutions such as JasperReport.
 
Consider Paul's rocket mass heater.
 
subject: How to convert pdf in jsp page, which have the arabic data