PdfPCell and ColumnText only use the text in the Paragraph. The alignment,
leading, etc, is done at this classes.

Best Regards,
Paulo Soares

> -----Original Message-----
> From: Arlin  Varghese [SMTP:[EMAIL PROTECTED]]
> Sent: Wednesday, July 03, 2002 14:22
> To:   [EMAIL PROTECTED]
> Subject:      [iText-questions] Problems with Leading
> 
> Hi,
> 
> When I try to add a paragraph to a cell in a PdfPTable, i find 
> that the leading and alignment functions do not function as 
> deisred.
> 
> Following is the piece of code used:
> 
> Paragraph p1 = new Paragraph(50f, "(2) this is a phrase with 
> leading 24. You can only see the difference if the line is long 
> enough. Do you see it? There is more space between this line and 
> the previous one.\n",
> new Font(Font.HELVETICA, 10, Font.NORMAL, new Color(0, 0, 0)));
> p1.setLeading(50f);
> p1.setAlignment(Element.ALIGN_JUSTIFIED);
> datatable.addCell(p1);
> 
> I do not find any difference on changing the value of "leading". 
> Also, the alignment remains LEFT adjusted always.
> 
> Could you pls give a soln. to this problem.
> 
> Thanks,
>    Arlin
> 
> 
> _________________________________________________________
> There is always a better job for you at Monsterindia.com.
> Go now http://monsterindia.com/rediffin/
> 
> 
> 
> -------------------------------------------------------
> This sf.net email is sponsored by:ThinkGeek
> No, I will not fix your computer.
> http://thinkgeek.com/sf
> _______________________________________________
> iText-questions mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/itext-questions


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
No, I will not fix your computer.
http://thinkgeek.com/sf
_______________________________________________
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to