Call setUseVariableBorders(). Paulo
----- Original Message ----- From: "sujikin" <[email protected]> To: <[email protected]> Sent: Tuesday, May 26, 2009 8:04 PM Subject: [iText-questions] Coloring the top border of PdfPCell Hi, I am trying to color the top border of a PDFPCell using the below code, PdfPCell cell = new PdfPCell(new Paragraph("header with colspan 3")); cell.setBorder(Rectangle.NO_BORDER); cell.setBorder(Rectangle.LEFT); cell.setBorderColorTop(Color.red); It colors the border with black?? Any clue why this is happening? Thanks ------------------------------------------------------------------------------ Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT is a gathering of tech-side developers & brand creativity professionals. Meet the minds behind Google Creative Lab, Visual Complexity, Processing, & iPhoneDevCamp as they present alongside digital heavyweights like Barbarian Group, R/GA, & Big Spaceship. http://p.sf.net/sfu/creativitycat-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 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/
