I am adding PdfPCells to PdfPTables with the addCell()-function.
This added cells normally contain images or phrases that i added before i
add the cells to the tables in this way:
Images: cell = new PdfPCell(image,false);
Phrases: cell.addElement(new Phrase("Nabble is cool",...);
Now occures the problem that i am not able to set a horizontal alignment to
the cells with phrases.
I mean i am able but it doesn't take any effect. Doesn't matter if i don't
set any alignment or if i use for example Element.ALIGN_RIGHT or something.
The result always is the same.
The strange is that a vertical alignment takes effect on the cell p.e. with
BOTTOM or TOP etc.
I mentioned cells with images cause there i can place them on the horizonal
level as i want. Left, right, whatever.
Why the hor. alignment of cells with phrases doesn't seem to take effect? So
that the text "Nabble is cool"
for example seems to be always left-aligned? I have to set a param of the
table or the cell to "false" or "true" that i get my wished result or how
has to look the solution?
Can somebody help me please. Thanks already a lot ! :)
--
View this message in context:
http://www.nabble.com/Problems-with-Alignments-of-PdfPCells-in-PdfPTables-tp17070687p17070687.html
Sent from the iText - General mailing list archive at Nabble.com.
-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions
Do you like iText?
Buy the iText book: http://www.1t3xt.com/docs/book.php
Or leave a tip: https://tipit.to/itexttipjar