I am trying to create only the top border for PdfpCell but for some odd
reason when the PDF is generateed I see vertical border as well. here is the
code that I generate the table cell with.
PdfPCell pdfPCell = getTopBorderTableCell(getHeaderCell("Hello"));
protected Paragraph getHeaderCell(String a_data) {
Chunk chunk = new Chunk(a_data);
chunk.setFont(FontUtility.DATA_BOLD_FONT);
Paragraph par = new Paragraph(chunk);
par.setAlignment(Element.ALIGN_CENTER);
return par;
}
protected PdfPCell getTopBorderTableCell(Paragraph a_par){
PdfPCell cell = new PdfPCell(a_par);
cell.setBorderWidthTop(3);
return cell;
}
--
View this message in context:
http://www.nabble.com/PdfpCell-Border-problem.-tf1960334.html#a5377590
Sent from the iText - General forum at Nabble.com.
-------------------------------------------------------------------------
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