Paulo Soares wrote:
>
> It's to be run in ColumnText or PdfPTable. Document.add() has more
> limitations.
>
> Paulo
>
Thanks! Do you know a solution that I can add a Paragraph, that consists of a
Phrase with a Chunkimage, directly into the Document without the Image doesn't
overwrite the content in the lines before. In a PdfPCell I could resolve this
problem with your setLeading(0,1) method.
Image image1 = Image.getInstance("test.gif");
Chunk chunk1 = new Chunk("Test\n");
Chunk chunk2 = new Chunk(image1, 0, 0);
Phrase phrase1 = new Phrase();
phrase1.add(chunk1);
phrase1.add(chunk2);
phrase1.setLeading(image1.scaledHeight());
Paragraph par = new Paragraph();
par.add(phrase1);
document.add(par);
-------------------------------------------------------------------------
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/