Use PdfPCell.addElement() the keep the formating. 

> -----Original Message-----
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On 
> Behalf Of Pradosh
> Sent: Wednesday, September 14, 2005 6:17 PM
> To: itext-questions@lists.sourceforge.net
> Subject: [iText-questions] SuperScript inside a table cell
> 
> Hello All,
> 
> I am trying to add a superscript letter to the end of an 
> header string.
> 
> Here is the code:
> 
> for (int hct=0; hct<headers.length; hct++){
>       PdfPCell header = new PdfPCell(new 
> Paragraph(headers[hct], titleFont));
>       header.setHorizontalAlignment(Element.ALIGN_RIGHT);
>       header.setBorderWidth(0f);
>       header.setVerticalAlignment(Element.ALIGN_BOTTOM);
>       table.addCell(header); 
>                        ??? where should i put chunk code ???
> }
> document.add(table)
> 
> 
> 
> For Example, If the header entry is "Account". I am trying to 
> append it with a 
> superscripted "1". I know we can superscript letter using 
> Chunk class, but how 
> do I add it to the  above document. Problem is that Chuck 
> should be the 
> PdfCell, how do I do that?
> 
> Any help would be appreciated.
> 
> Thanks,
> Pradosh
> 
> 
> 
> -------------------------------------------------------
> SF.Net email is sponsored by:
> Tame your development challenges with Apache's Geronimo App Server. 
> Download it for free - -and be entered to win a 42" plasma tv 
> or your very
> own Sony(tm)PSP.  Click here to play: 
> http://sourceforge.net/geronimo.php
> _______________________________________________
> iText-questions mailing list
> iText-questions@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/itext-questions
> 


-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server.
Download it for free - -and be entered to win a 42" plasma tv or your very
own Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to