I'm trying to wrap the text of a paragraph around an image and I'm
having some problems.  When I use the Image.TEXTWRAP property for the
alignment, the image shows up right next to the last line of the
paragraph and there's an image-sized blank space between the second to
last and last lines.  The code I'm using looks something like this:

Image img = Image.getInstance(imageUrl);
img.setAlignment (Image.TEXTWRAP | Image.ALIGN_RIGHT);
Paragraph para = new Paragraph();
para.add(<a bunch of text>);
para.add(img);
doc.add(para);

What I want to do is have the image on the right side and the text
wrapping around it.  Is this possible? If so, can someone show me how
it's done?  Thanks.

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php

Reply via email to