Actually, I hadn't noticed before but yes it does look like there are
a couple of extra linebreaks after most (but not all) of the pictures
I insert. That's not as much of a problem for me as the text wrapping
though.. anyone have a solution for this?

On Wed, Aug 27, 2008 at 12:54 AM, Le Doyen, Loic
<[EMAIL PROTECTED]> wrote:
> hi,
> Don't you have also the problem of having 2 line breakers added just after 
> your picture ? Or have you solved this problem ?
> Back to the alignment, I haven't pass to set another alignment than the 
> default one(left), the method setAlignment of the Image class is not working 
> on my computer.
>
> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of John Schroeder
> Sent: mercredi 27 août 2008 0:57
> To: [email protected]
> Subject: [iText-questions] RTF: Wrapping text around an image?
>
> 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
>
> -------------------------------------------------------------------------
> 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
>

-------------------------------------------------------------------------
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