Hi,
     I am creating a pdf with a PdfPTable & a Phrase. There is some unwanted
space(of the size of the table displayed) added after the table and before
the phrase. I tried setting spaceAfter(0) but it still isn't working. Any of
you have any idea what is going on? 

Following is the code I am using and the screenshot of my pdf generated. The
code is similar to the example listed in pg.164 in the iText in Action book. 

document.open();

PdfPTable table = new PdfPTable(2);
PdfPCell cell = new PdfPCell(new Paragraph("header with col span 3)"));
cell.setColspan(3);
table.addCell(cell);
table.addCell("1.1");
table.addCell("1.1");
table.addCell("1.1");
table.addCell("1.1");
table.addCell("1.1");
table.addCell("1.1");
table.addCell("1.1");
table.addCell("1.1");
table.addCell("1.1");
table.addCell("1.1");
table.addCell("1.1");
table.addCell("1.1");
table.addCell("1.1");
table.addCell("1.1");
table.addCell("1.1");
table.addCell("1.1");
 
document.add(table);
                
Phrase phrase1 = new Paragraph("This is a phrase",
ZenithPdfConstants.FONT_PARAGRAPH);
document.add(phrase1);

http://www.nabble.com/file/p22235081/Pdf1.png 




Thanks in advance,

-- 
View this message in context: 
http://www.nabble.com/PdfPTable-adding-unwanted-space-after-the-table-created-tp22235081p22235081.html
Sent from the iText - General mailing list archive at Nabble.com.
------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php

Reply via email to