First I add a Paragraph with the Text "g_Test_g" and then a PdfPTable without 
any spacing before. The problem is that the PdfTable overwrites the last part 
of the "g" and the underline. Any ideas how I could resolve this problem?

Code:

Chunk chunk2 = new Chunk("g _Test_g");
Paragraph p2 = new Paragraph(chunk2);

document.add(p2);

Chunk chunk1 = new Chunk("Test");
Paragraph p1 = new Paragraph(chunk1);

PdfPTable table = new PdfPTable(1);
table.setWidthPercentage(100);
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/

Reply via email to