I am having issues trying to add an image to a paragraph and have the
text in that paragraph wrap around it.

I am trying to achieve this
https://skitch.com/nmaves/r6dj3/15415-adults-9781611200133-sell.pdf-1-page.
 But I can't seem to figure it out.  I have two images the first is
the profile picture and the second is the gradient.  I want the text
to wrap on the right of the image until it can come back under the
image.  Because of this last bit I don't think I can achieve this with
tables.

                Image image =
Image.getInstance("http://media.dreamscapeab.com/people/100/gilbert.tavia.png";);
                image.scaleToFit(1000, 72);
                image.setAlignment(Image.LEFT | Image.TEXTWRAP);
                
                document.add(image);
                document.add(new Paragraph("some more really long text.  some 
more
really long text.  some more really long text.  some more really long
text.  some more really long text.  some more really long text.  some
more really long text.  some more really long text."));
                
                Paragraph p = new Paragraph();
                p.setSpacingBefore(20);
                p.add(new Chunk(image, 0, -72, true));
                p.add("some text");
                p.add("some more really long text.  some more really long text.
some more really long text.  some more really long text.  some more
really long text.  some more really long text.  some more really long
text.  some more really long text.");
                
                document.add(p);

Thanks in advance,

Nathan

------------------------------------------------------------------------------
WhatsUp Gold - Download Free Network Management Software
The most intuitive, comprehensive, and cost-effective network 
management toolset available today.  Delivers lowest initial 
acquisition cost and overall TCO of any competing solution.
http://p.sf.net/sfu/whatsupgold-sd
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference 
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: 
http://itextpdf.com/themes/keywords.php

Reply via email to