Hello,

In order to support multi-line rows (depending on the size of the default text) 
I use the commended solution of nested tables i.e.

// create main table
PdfPTable table = new PdfPTable(...);
...
// create nested table
PdfPTable nested = new PdfPTable(...);
// create cell within nested table
PdfPCell cell = new PdfPCell(nested);
// set alignment => does not get properly propagated?
cell.setVerticalAlignment(Element.ALIGN_TOP);
cell.setHorizontalAlignment(Element.ALIGN_LEFT);
...
// add cell directly to the main table
table.addCell(cell);

This works fine. However, the nested table cell doesn't get properly aligned 
vertically and there is no PdfPTable#setVerticalAlignment(...) method available.

Can anyone please advice?

Thanks in advance,
Best regards,
Giovanni 
------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.itextpdf.com/book/
Check the site with examples before you ask questions: 
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/

Reply via email to