Eric Summkeller wrote:
> 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.
It's not elegant to use \n in a Paragraph,
do it this way:
Chunk chunk1 = new Chunk("Test");
Paragraph p1 = new Paragraph();
p1.add(chunk1);
Paragraph p2 = new Paragraph();
Image image1 = Image.getInstance("fflogo.jpg");
Chunk chunk2 = new Chunk(image1, 0, 0, true);
p2.add(chunk2);
p2.setLeading(image1.scaledHeight());
document.add(p1);
document.add(p2);
br,
Bruno
-------------------------------------------------------------------------
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/