When using addElement() the horizontal alignment comes from the object. Use a Paragraph with the required alignment.
> -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of Marc Lustig > Sent: Friday, November 04, 2005 4:33 PM > To: [email protected] > Subject: [iText-questions] problem with PdfPCell horiz. alignment > > there is another strange behaviour with PdfPCell: > > PdfPCell c = new PdfPCell(); > c.setBorder(0); > c.setVerticalAlignment(Element.ALIGN_BOTTOM); > c.addElement(new Phrase("Ort:", FONT)); > c.setHorizontalAlignment(PdfPCell.ALIGN_RIGHT); > table.addCell(c); > > ---> against any expectation the text "Ort" is NOT positioned at the > right border of the cell, it's still at the left border (default). > Why? > > I would debug this just I don't have the time... > > > ------------------------------------------------------- > SF.Net email is sponsored by: > Tame your development challenges with Apache's Geronimo App > Server. Download > it for free - -and be entered to win a 42" plasma tv or your very own > Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php > _______________________________________________ > iText-questions mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/itext-questions > ------------------------------------------------------- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42" plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php _______________________________________________ iText-questions mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/itext-questions
