Bramlett, John wrote:
I have an image that I am adding to a chapter with the alignment set to Image.TEXT_WRAP | Image.LEFT. When I generate my PDF for most of the images the text wraps around beautifully with the text on the right and then some flowing under the image. However I have a few instances in which the text ends up being written on top of the image with the alignment all skewed. From what I can tell this seems to happen when there is basically no text to wrap, i.e. the image height is greater than the height of the corresponding text. If I add additional Chunk.NEWLINE's to the text, basically making it seem like there is a need to actually wrap everything works.

I'm attached a working copy and a not-working copy - they use the same code to generate the document the only difference is in the text content. Am I doing something wrong on my side with the text wrap? The code is all pretty straight forward for this on my end, just add the image to the chapter and then add the content (as a paragraph - I tried a phrase but same thing).

I've tried reproducing the problem, but without any success.
See attachment. Can you send us a small standalone example
we can use to test what is happening?
--
This answer is provided by 1T3XT BVBA

Attachment: image_wrap.pdf
Description: Adobe PDF document

-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Do you like iText?
Buy the iText book: http://www.1t3xt.com/docs/book.php
Or leave a tip: https://tipit.to/itexttipjar

Reply via email to