Tadamarry, Faizuddin G wrote:
I am new to IText library. I want to display data in a cell in vertical and also in the center.cell = new PdfPCell(new Phrase("ZULF")); cell.setRotation(90); cell.setVerticalAlignment(Element.ALIGN_MIDDLE);Whereas it is always show at the bottom. Please help.
Please compare your code sample with the code sample from the book: cell.setVerticalAlignment(Element.ALIGN_CENTER); If you rotated everything 90 degrees, you also have to rotate the concept of alignment. The text is Centered, in that case, you don't use ALIGN_MIDDLE, but ALIGN_CENTER. br, Bruno
smime.p7s
Description: S/MIME Cryptographic Signature
------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________ iText-questions mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://itext.ugent.be/itext-in-action/
