To display only bottom line of border of header, I have code:
Table headerTable = new Table(1);
// headerTable.setBorderColor(new Color(255,255,255));
// headerTable.setDefaultCellBorderColor(new Color(255,0,0));
headerTable.setBorderColorTop(new Color(255,255,255));
headerTable.setBorderColorLeft(new Color(255,255,255));
headerTable.setBorderColorRight(new Color(255,255,255));
headerTable.setBorderColorBottom(new Color(0,0,0));
headerTable.setWidth(100);
headerTable.setAlignment("LEFT");
headerTable.setWidths(new int[] {100});
cel = new Cell();
cel.setBorderColorTop(new Color(255,255,255));
cel.setBorderColorLeft(new Color(255,255,255));
cel.setBorderColorRight(new Color(255,255,255));
cel.setBorderColorBottom(new Color(255,0,0));
c = new Chunk(SPACE_LINE1+
"Principal Investigator/Program Director (Last, First, Middle): ",
plain8Font);
cel.add(c);
c = new Chunk(pi_name, plain12Font);
cel.add(c);
cel.setHorizontalAlignment("LEFT");
headerTable.addCell(cel);
HeaderFooter header = new RtfHeaderFooter(headerTable);
document.setHeader(header);
But it displays whole border.
Why? How to get it worked?
-Henry
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/