I am trying to add empty "Cells" in a row to a "Table" with certain height.
Since the cells have no text, they are being compressed. But I want empty
space with certain height to be printed. I don't see any height attribute for
the Cell or Table where I can set a minimu height. How do I accomplish this?
Thanks in advance for any help in this regard.
I have the code sample below:
##innertable3
innerTable3 = new Table(4);
innerTable3.setWidth(100);
float[] colWidths={25,25,25,25};
innerTable3 .setWidths(colWidths);
cell=new Cell(new Phrase("$langHelper.getLabel('confirmation')", cellBoldFont));
cell.setBorderWidth(2);
cell.setHorizontalAlignment(Element.ALIGN_CENTER);
cell.setColspan(4);
innerTable3.addCell(cell);
cell=new Cell(new Phrase("$langHelper.getLabel('supplier')", cellBoldFont));
cell.setBorderWidth(2);
cell.setHorizontalAlignment(Element.ALIGN_CENTER);
cell.setBorder(Rectangle.LEFT + Rectangle.BOTTOM);
innerTable3.addCell(cell);
cell=new Cell(new Phrase("$langHelper.getLabel('reception')", cellBoldFont));
cell.setBorderWidth(2);
cell.setHorizontalAlignment(Element.ALIGN_CENTER);
cell.setBorder(Rectangle.BOTTOM);
innerTable3.addCell(cell);
cell=new Cell(new Phrase("$langHelper.getLabel('warehouse')", cellBoldFont));
cell.setBorderWidth(2);
cell.setHorizontalAlignment(Element.ALIGN_CENTER);
cell.setBorder(Rectangle.BOTTOM);
innerTable3.addCell(cell);
cell=new Cell(new Phrase("$langHelper.getLabel('carrier')", cellBoldFont));
cell.setBorderWidth(2);
cell.setHorizontalAlignment(Element.ALIGN_CENTER);
cell.setBorder(Rectangle.BOTTOM + Rectangle.RIGHT);
innerTable3.addCell(cell);
##EMPTY ROW
cell=new Cell(new Phrase(" ",cellBoldFont));
cell.setBorderWidth(2);
cell.setBorder(Rectangle.LEFT+Rectangle.RIGHT);
innerTable3.addCell(cell);
cell=new Cell(new Phrase(" ",cellBoldFont));
cell.setBorderWidth(2);
cell.setBorder(Rectangle.RIGHT+Rectangle.LEFT+Rectangle.TOP);
cell.setBackgroundColor(Color.lightGray );
innerTable3.addCell(cell);
cell=new Cell(new Phrase(" ",cellBoldFont));
cell.setBorderWidth(2);
cell.setBorder(Rectangle.RIGHT);
innerTable3.addCell(cell);
cell=new Cell(new Phrase(" ",cellBoldFont));
cell.setBorderWidth(2);
cell.setBorder(Rectangle.RIGHT);
innerTable3.addCell(cell);
-------------------------------------------------------
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