I have upgraded to version 2.1.3 and still have the same problem document = new Document(PageSize.LETTER); pdfwriter = PdfWriter.getInstance(document, new FileOutputStream("TestRpt5.pdf")); document.open();
PdfPTable table1 = new PdfPTable(2); PdfPCell cell1 = new PdfPCell(new Phrase("Cell one")); cell1.setVerticalAlignment(Element.ALIGN_MIDDLE); PdfPCell cell2 = new PdfPCell(new Phrase("Cell Two")); table1.addCell(cell1); table1.addCell(cell2); document.add(table1); document.close(); -----Original Message----- From: 1T3XT info [mailto:i...@1t3xt.info] Sent: Saturday, January 31, 2009 3:01 AM To: Post all your questions about iText here Subject: Re: [iText-questions] I'm having trouble with setting the vertical of a cell Lopes, James wrote: > I'm using iText version 1.3.1 That's a mighty old version dating from May 11, 2005. > // only the horizontal is working?? > hdr1.setHorizontalAlignment(Element.ALIGN_CENTER); > hdr1.setVerticalAlignment(Element.ALIGN_MIDDLE); As documented: we no longer help people when they have problems with Table because they should use PdfPTable (PDF only) instead. We make sometimes exceptions, but not for iText versions that are almost 4 years old. Sorry... -- This answer is provided by 1T3XT BVBA http://www.1t3xt.com/ - http://www.1t3xt.info ------------------------------------------------------------------------ ------ 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 ------------------------------------------------------------------------------ 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