Hello,

I'm using a ColumnText to display some paragraphs, and I'm experimenting 
with Chunks that contain an Image.
I'd like the image box to change the ascender and descender of the line 
it is displayed on, so that when the text wraps to a new line, it 
doesn't overlap with the image. My goal is to reproduce the behaviour of 
OpenOffice (or other editors) when an image is anchored as a character 
with text wrap set to none.
As it seems, one solution would be to set changeLeading in the Chunk 
constructor to true, but this appears to make no difference with 
iText-1.4.3. I also tried setting the leading for the column and the 
paragraph with setLeading(0, 1), to no effect.
Does itext-paulo-155 implement this behaviour ? I'm trying to test it, 
but I'm having problems with methods from
iText-1.4.3 which do not exist in itext-paulo-155, such as 
PdfPTable.get/setFooterRows() and the constructor Chunk(Chunk).
I also thought of another solution, which would involve creating a dummy 
BaseFont with an ascender and descender reflecting the size and position 
of the Image in the Chunk, but I'm not sure it's feasible.

Best regards,
Damien Drix

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to