There's no bug, the problem is in your code. You call setTotalWidth()
with a value unrelated to the page size. The first time it loops the
width is 24 but as you didn't call setLockedWidth() the width is reset
to the page width, about 590, when the table is added to the doc. In the
second and subsequent loops the width is the one used when added to the
page, about 590. This result in different values. You should use
setLockedWidth() for this kind of usage.

Paulo

> -----Original Message-----
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On 
> Behalf Of [EMAIL PROTECTED]
> Sent: Thursday, May 15, 2008 5:50 PM
> To: [email protected]
> Subject: [iText-questions] Further Testing - RE: Confusing 
> Cell Hight numbers
> 
> 
> Ok, I have done some further testing and have found the 
> following possible bug... 
> 
> When generating a table the first time a row is created 
> within a for loop, the cell height is really messed up. 
> I even tried creating a row before the for loop and it cell 
> height is correct but the next one (first in the for loop) is 
> again way off. 
> I have attached the generated pdf, the test code sample and 
> the java console log. 
> Can someone  take a look and see if maybe I did something 
> wrong or maybe iText support can use this as an example to 
> figure out what is going wrong. 
> 
> Thank You.. 
> 
> 
> 
> Glen Hamel
> Lead Programmer / Technician
> Auric Networks Canada, Inc.
> 570 Orwell Street, Unit 1
> Mississauga, Ontario
> L5A 3V7
> 
> Phone 905.361.7621
> Fax 905.274.3912 
> 
> http://www.auricnet.ca <http://www.auricnet.ca/> 
> 


Aviso Legal:
Esta mensagem é destinada exclusivamente ao destinatário. Pode conter 
informação confidencial ou legalmente protegida. A incorrecta transmissão desta 
mensagem não significa a perca de confidencialidade. Se esta mensagem for 
recebida por engano, por favor envie-a de volta para o remetente e apague-a do 
seu sistema de imediato. É proibido a qualquer pessoa que não o destinatário de 
usar, revelar ou distribuir qualquer parte desta mensagem. 

Disclaimer:
This message is destined exclusively to the intended receiver. It may contain 
confidential or legally protected information. The incorrect transmission of 
this message does not mean the loss of its confidentiality. If this message is 
received by mistake, please send it back to the sender and delete it from your 
system immediately. It is forbidden to any person who is not the intended 
receiver to use, distribute or copy any part of this message.


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft 
Defy all challenges. Microsoft(R) Visual Studio 2008. 
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
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