Hi,

 

Iâm having a issue with leading in paragraphs. Iâve been working with them and havenât been able to figure out how to adjust the leading for just one line of text with in a paragraph that has an image inline with the text. The image overlaps the text on the line above, if I set the paragraph leading to the height of the image the other text on the image above and below the image has too much leading.

 

The example below illustrates my problem.Â

 

What do you recommend I do to solve this?

 

Please email me at Trevor at verite dot com.

 

Thanks,

Trevor

 

 

ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ document.add(new Phrase("new Phrase -> Document.add(), new Phrase(\\n) -> Document.add(), new Chunk(Image, 0, 0, true) -> Document.add()"));

ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ // add a new line element

ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ document.add(new Phrase("\n"));

ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ // add a new image

ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ //document.add(new Chunk(Image.getInstance(new URL("http://www.lowagie.com/iText/logo.gif")),0,0,true));

ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ document.add(new Phrase("new Phrase -> Document.add()"));

 

Thanks,

Trevor

Reply via email to