Ok, I resolved with:
image.setAlignment(Image.MIDDLE)

But with PDF generation, aligning an Image inside a Cell of a Table doesn't 
require the previous line of code...

I've seen many undocumented differences between PDF generation and RTF 
generation.

It is true that the main purpose of Itext is with PDF and so, RTF comes always 
after like a dog'tail which follows the head, I believe that itext should be a 
dog with two heads, but it is only my personal opinion.

Congratulations about itext, it is wonderful, best regards.

Raffaele

P.S.: sorry for the english :-)

 

 

 

 

 

 

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of GAMBELLI Raffaele
Sent: venerdì 29 dicembre 2006 10.00
To: Post all your questions about iText here
Subject: Re: [iText-questions] RtfCell or Cell?


Hi,
 
thank you for the answer but it doesn't work....
Besides, why PDF with Element.ALIGN_CENTER should work and RTF no?
 
I'm using Microsoft Word 2000 to view the output, could it be this the cause?
 
However, is there someone with Office XP who could try the image alignment 
inside a table in a RTF document?
 
Thank you very much, best regards.
 
Raffaele

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of yosa kresnandya
Sent: giovedì 28 dicembre 2006 18.12
To: Post all your questions about iText here
Subject: Re: [iText-questions] RtfCell or Cell?


Try to use :

head2.setHorizontalAlignment(Cell.ALIGN_CENTER ); 

instead of

head2.setHorizontalAlignment(Element.ALIGN_CENTER);

-- 
Rgds,
Yosa


-------------------------------------------------------------------------
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
Buy the iText book: http://itext.ugent.be/itext-in-action/

Reply via email to