First we can set all cell borders as 0 and After assigning all cell to table
we can use the following code for for only pdfptable outer border.

            PdfPCell cell = new PdfPCell();
            cell.AddElement(t);
            cell.BorderWidthBottom=1f;
            cell.BorderWidthLeft=1f;
            cell.BorderWidthTop=1f;
            cell.BorderWidthRight = 1f;
            PdfPTable t1 = new PdfPTable(1);
            t1.AddCell(cell);

Here we can add table to one cell and can set border and again add that cell
to another table and we can use as per our requirement.




--
View this message in context: 
http://itext-general.2136553.n4.nabble.com/How-to-set-border-around-PdfPTable-tp3549165p4659883.html
Sent from the iText - General mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/13534_NeoTech
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference 
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: 
http://itextpdf.com/themes/keywords.php

Reply via email to