If you need multiple paragraphs in a single cell with different alignments, then I 
think you will
have to use a nested inner table and set the alignment on the individual cells in the 
inner table.
Also, be aware that there are known problems with nested tables inside Table.  You 
would probably be
better off using PdfPTable and the itext-paulo-139 version at itextpdf.sf.net.

----- Original Message ----- 
From: <[EMAIL PROTECTED]>
To: "Steve Appling" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Tuesday, October 12, 2004 9:44 AM
Subject: Re: [iText-questions] Alignment of text in a Paragraph within a Cell


>
>
>
>
> Steve,
>
>       Thanks for ur reply. This code works.
>
>       I have the another requirement where i need to add the following rich
> text to the cell.
>
>       String htmlText = "<P align=left>Left aligment</P><P
> align=center>center alignment</P><P align=right>Right alignment</P>";
>
>       I am using the SAXiTextHandler.java as the handler to parse the
> richtext.  I defined a class TextElementArrayWriter which implements the
> DocListener and using this object during creation of the handler object.
> Here i am attaching the TextElementArrayWriter.java class
>
>       The htmlText String contains 3 paragraphs with different alignments.
> So please let me know how to keep the alignment for that cell with many
> paragraphs.
>




-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to