In my code I use the Methods setPaddingTop and setPaddingBottom of the Class PdfPCell to specify the space between the text to the border on the top and the border on the bottom of the cell, but that doesn't really work for me. There is more space to the top than to the bottom....
It seems to me that the line is higher than just the size of the current font, what makes perfectly sense in most cases but unfortunately not in mine.... How can I change the height of the line? Or is there a better way to have the exact same space to the bottom and the top in a cell? This is the code: public class Main { public static void main(String[] args) throws Exception { Document document = new Document( ); PdfWriter writer = PdfWriter.getInstance(document, new FileOutputStream("pdf/HelloWorld.pdf")); document.open(); PdfPTable table = new PdfPTable( 1 ); PdfPCell cell = new PdfPCell( new Phrase( "Test." ) ); cell.setUseBorderPadding( true ); cell.setPaddingTop( 0 ); cell.setPaddingBottom( 0 ); table.addCell( cell ); document.add( table ); document.close( ); } } I hope you can help me and sorry for my bad english... Dominik ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.1t3xt.com/docs/book.php