I'm having a go at pumping out some reports in PDF format. iText is looking
the goods but I'm having trouble prettying up the tables.
I can't figure out a way to set the font for all elements in the table so I've
resorted to creating a chunk with the font specs to go into a new cell for each
row.
It would sure be a lot easier if i could use the addCell(String text) method
instead.
All the text in the cells seems to align to the bottom of the cells. This
looks really silly in header rows where the background color is set.
I've tried using
table.setDefaultVerticalAlignment(Cell.ALIGN_MIDDLE);
which doesn't seem to do anything so I tried setting it on the actual cell.
Cell test = new Cell(new Chunk("Carrier", font));
test.setVerticalAlignment(Cell.ALIGN_MIDDLE);
Which also failed.
Any Ideas?
Regards
Peter Wilkinson
System Engineer
Mantel Solutions Pty Ltd
35 Hamilton Road
Moorooka QLD 4105
P: 07 3848 0001
F: 07 3392 9923
E: [EMAIL PROTECTED]
W: www.mantel.com.au
The information contained in this electronic message (e-mail) and any files
transmitted with it, is intended
for the named recipients only. It may contain privileged and or confidential
information and if you are not
the intended recipient you must not copy distribute or take any action in
reliance on it. If you have received
this electronic message (e-mail) and any files transmitted with it in error
please delete immediately and advise
Mantel Solutions on 07 38480001.
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions