I add a formatted Paragraph into a PdfPCell and the SpacingBefore method
doesn't work. Any idea what my mistake is? The other methods work correctly.
Code:
Chunk chunk1 = new Chunk("Test");
Paragraph p1 = new Paragraph();
p1.add(chunk1);
p1.setIndentationLeft(15);
p1.setIndentationRight(15);
p1.setSpacingBefore(15);
p1.setSpacingAfter(15);
PdfPTable table = new PdfPTable(1);
PdfPCell cell = new PdfPCell();
cell.addElement(p1);
table.addCell(cell);
document.add(table);
-------------------------------------------------------------------------
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/