• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Arabic using iText

 
Vassili Vladimir
Ranch Hand
Posts: 1585
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I want to add some arabic text in my PDF files using iText. How can I do that?

Thanks in advance,
 
Lester Burnham
Rancher
Posts: 1337
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The iText API is based on Java String objects - which represent Unicode characters, so you cann add any text that can be represented in Unicode.
A difficulty may be if the machine where the file is viewed does not have a font with Arabic characters. Unless you can safely assume that it has, it may be better to include a suitable font in the PDF.
 
Vassili Vladimir
Ranch Hand
Posts: 1585
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for your reply, but can you please post an example?
 
Rob Spoor
Sheriff
Pie
Posts: 20610
63
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I suggest you get the book "iText in Action". It has a complete section (or possibly even chapter) on I18N, including hints for Arabic.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic