I need a PDFP table and I do not want to borders on it , the below code does
not seem to accomplish what i want.
can i anyone help me fix the code.

PdfPTable tablex1=new PdfPTable(2);
tablex1.getDefaultCell().setBorder(Rectangle.NO_BORDER);
tablex1.setSpacingBefore(15f);
tablex1.setTotalWidth(300);
tablex1.setLockedWidth(true);

PdfPCell cell = new PdfPCell(new Paragraph("header with colspan 3"));
cell.setBackgroundColor($hdr2BgColor);
cell.setHorizontalAlignment(Element.ALIGN_RIGHT);
tablex1.addCell(cell);

PdfPCell cell = new PdfPCell(new Paragraph("header with colspan 3"));
cell.setBackgroundColor($hdr2BgColor);
cell.setHorizontalAlignment(Element.ALIGN_LEFT);
tablex1.addCell(cell);


document.add(tablex1);

thanks in advance,
Sai.
------------------------------------------------------------------------------
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php

Reply via email to