I asked this question some time ago but I got no answer. I add a Paragraph
with specific indentation and spacing values into a PdfPCell. The spacing of
the PdfPCell border and the beginning of the Paragraph is false. Each value
that I enter doesn't change the distance between the PdfPCell border and the
beginning of the Paragraph. The other settings work correctly. Could somebody
tell me how I could resolve this problem.
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/