Corwin noname wrote:
How to get highest character to touch the top border of the cell? Is it possible to do that?
I just checked the book and it should be setUseAscender instead of setAscender. I hope you already found this out yourself. In any case: reading chapter 6 of the book would have saved you from having to ask the question. What surprised me reading your question was that you found setUseDescender, but failed to find setUseAscender... Document document = new Document(); PdfWriter.getInstance(document, new FileOutputStream("cellheight.pdf")); document.open(); PdfPTable myTable = new PdfPTable(1); PdfPCell cell = new PdfPCell(); cell.addElement(new Chunk("abcdefghijklmnopqrstuvwxuz")); cell.setPadding(0); cell.setUseAscender(true); cell.setUseDescender(true); myTable.addCell(cell); document.add(myTable); document.close(); br, Bruno
cellheight.pdf
Description: Adobe PDF document
------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/
_______________________________________________ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://itext.ugent.be/itext-in-action/