To center exactly use setUseAscender(true), setUseDescender(true), and 
setUseBorderPadding(true).
You then may have to increase padding to get the appropriate spacing from the borders.

----- Original Message ----- 
From: "Martin Resch (adaptions GmbH)" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, October 27, 2004 4:22 AM
Subject: [iText-questions] leading and alignment in PdfPCell


> Hello,
>
> I've a PdfPTable with a PdfPCell (with absolute height, no padding)
> inside. In the cell there is a Phrase. The Phrase is aligned with
> PdfPCell.setVerticalAlignment(). Everything is all right as long as there
> isn't a leading.
> After calling the function PdfPCell.setLeading(x, 0) with alignment
> middle or top the text isn't in the middle/top but there is an additional
> space above the text.
> Why is this so and how is the space calculated? My goal is to place
> the text with leading in the middle and the first line directly on top
> respectively.
> ...




-------------------------------------------------------
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
_______________________________________________
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to