• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
zita lakshmi
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Rancher
Posts: 42968
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It's using the default font, which most likely does not have those characters. See this for some examples.
 
zita lakshmi
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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
Rancher
Posts: 42968
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic