Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » iText »

[iText-questions] PdfpCell Border problem.

mcevikce

2006-07-18



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;
 }
--
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
iText-questions@(protected)
https://lists.sourceforge.net/lists/listinfo/itext-questions
©2008 junlu.com - Jax Systems, LLC, U.S.A.