Hi,

1. Thanks a Lot for your valuable help. I was struggling on R&D for 3
days with this issue. Finally you solved my problems. Thanks to iText
for quick response. 
2. But the another issue is, if it exceeds the cell limit the English
characters & Arabic characters are printing in collapse order. Means
some English chars comes first & some Arabic chars comes second & again
balance English chars comes next. Kindly provide the solution for this
too.

Thanks & Regards,
Raja Mohammed.

-----Original Message-----
From: 1T3XT info [mailto:[email protected]] 
Sent: Wednesday, February 03, 2010 5:13 PM
To: Post all your questions about iText here
Subject: Re: [iText-questions] How to write arabic charcters as Joint
characters & Right to left format even if it comes along with english
word

Raja Mohammed wrote:
> Hi,
>   1 . I am receiving Arabic characters along with English characters(
or 
> numbers ) in a single word of string from webservice. But while
writing 
> into PDF using iText it is writing characters only from left to right.
I 
> am writing in Cell of PdfPTable object. If English, It should be Left
to 
> right and if Arabic it should be Right to left.

Of course it should.

>  2. Also I am using font as arialuni.ttf. The Arabic characters are 
> written as distinct characters not a joint characters as it is coming 
> from webservice.The attachament Text Format - English & Arabic.JPG
shows 
> both format. One is actual string comes from host & another is code 
> generated.

Read the documentation!!!
The "problem" you're describing is shown here:
http://1t3xt.info/examples/browse/?page=example&id=152

You need to add cell.setRunDirection(PdfWriter.RUN_DIRECTION_RTL);
-- 
This answer is provided by 1T3XT BVBA
http://www.1t3xt.com/ - http://www.1t3xt.info

------------------------------------------------------------------------
------
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the
business
Choose flexible plans and management services without long-term
contracts
Personal 24x7 support from experience hosting pros just a phone call
away.
http://p.sf.net/sfu/theplanet-com
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php
Check the site with examples before you ask questions:
http://www.1t3xt.info/examples/
You can also search the keywords list:
http://1t3xt.info/tutorials/keywords/

------------------------------------------------------------------------------
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php
Check the site with examples before you ask questions: 
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/

Reply via email to