See the example arabic_hebrew.java in www.geocities.com/itextpdf.
The conversion of arabic to unicode depends on the encoding. If the encoding
is Cp1256 then:

String s = new String(my_byte_array_with_arabic, "Cp1256");

Best Regards,
Paulo Soares

----- Original Message -----
From: "zaher ..." <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, June 28, 2003 9:50
Subject: [iText-questions] HELP!


To whom it may concern Hello and help,
i am using the Itext library or should i say struggling with it ?
my problem is that i want to write arabic txt in a pdf file, after
fights i could manage to display arabic using the paragraph, i have a
unicode class that transforms arabic text to unicode forms i.e
/u0627/......
but the problem is that what i call the class arabic is displayed in the
correct direction but the characters are not combined together each
character is written alone!!!! and as u know in arabic characters are
comibined together, but if ur pass to the paragraph directly the unicode
/u027/.... arabic comes correctly.
now u might tell me use column text or arabic shaping, i tried the
column text but i dunno why i am getting error messages like it is not
comptible with sun whatever, i read the arabic shaping class but stil i
didn't find a method to which i send a string or a text and get the
unicode back and if it will just return each character alone, i already
created a class like that.
now is there a solution to display arabic text correctly??/? if yes can
u please show me a code sample or example to which u don't send directly
the unicode /uo627/etc, i want to call a class to transform arabic text
to unicode and then place it in the paragraph example:
x=new paragraph(unicode.convert("����"),new Font(bf,16)); where unicode
is my class that transform arabic text to unicode and convert is the
method that does the job,
P.S i used the same idea in add.text i got blank!!! or even the unidcode
is appearing and not the text why?
regards and hope u can help me with a piece of code or at least a
detailed explanation
thank you for ur efforts
bye

  _____

MSN 8 with e-mail virus protection service:
<http://g.msn.com/8HMMEN/2740??PS=> 2 months FREE*
------------------------------------------------------- This SF.Net
email sponsored by: Free pre-built ASP.NET sites including Data Reports,
E-commerce, Portals, and Forums are available now. Download today and
enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100006ave/direct;at.asp_061203_01/01
_______________________________________________ iText-questions mailing
list [EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions




-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100006ave/direct;at.asp_061203_01/01
_______________________________________________
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to