> Paulo Soares wrote:
> You could replace all Phrases with Paragraphs:
>
Thanks! That is the correct solution for my problem. One question I've got
yet. If I use this setLeading(0, 1) when I add this Paragraph directly into
the Document the text will be completly overwritten without any line break.
Perhaps I don't understand this method but why does this solution run in a
PdfPCell and not in a Document?
Code:
PdfPTable table = new PdfPTable(1);
Chunk chunk1 = new Chunk
("TestTestTestTestTestTestTestTestTestTestTestTestTestTestTestTestTestTestTestT
estTestTestTestTestTestTestTestTestTestTestTestTest");
Chunk chunk2 = new Chunk("Test2");
Paragraph p2 = new Paragraph();
p2.add(chunk1);
p2.add(chunk2);
p2.setLeading(0, 1);
document.add(p2);
-------------------------------------------------------------------------
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/