Subhrajyoti Moitra wrote:
> I am having issues, with aligning text and garphics in a cell.
> 
> PdfPCell securedByCell=new PdfPCell();
> securedByCell.setRunDirection(PdfWriter.RUN_DIRECTION_RTL);
> securedByCell.setHorizontalAlignment(PdfPCell.ALIGN_RIGHT);
> securedByCell.addElement(securedByPhrase);
> 
> securedByPhrase is a phrase with Chunks and Images.
> 
> I am aware of composite mode and text mode. I think what I am doing 
> above is composite mode! right?
> 
> I always see the phrase aligned to Left no matter what values i pass in 
> the setHorizontalAlignment and setRunDirection
> This cell in turn is added to a table.

RTL can be set to make sure the text is written from right to left; more 
specifically, if you want to display Arabic words (Western words are 
displayed left to right).

Are you saying you are adding "TEXT" to a cell, but you want it to 
display as "TXET"? Because that's what RTL is about if "TEXT" were a 
word in Arabic.

Also, you say you are aware of composite and text mode. You are right: 
what you are doing is composite mode; therefore the ALIGN_RIGHT is 
ignored. The variable securedByPhrase shouldn't be a Phrase, but a 
Paragraph of which you set the alignment to ALIGN_RIGHT.
-- 
This answer is provided by 1T3XT BVBA
http://www.1t3xt.com/ - http://www.1t3xt.info

------------------------------------------------------------------------------
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-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

Reply via email to