Why do you want to know the height? If you are placing the table with
Document.add() there's PdfWriter.fitsPage(). If you want more positioning
control it's better to place the objects at precise positions than to invent
some "time saving" workarounds.
If you still persist you have to set the total width of the table before
getting the height. The width is calculated from the page width less the
margins, the result multiplied by the width percentage.

Best Regards,
Paulo Soares

> -----Original Message-----
> From: [EMAIL PROTECTED] [SMTP:[EMAIL PROTECTED]]
> Sent: Friday, May 03, 2002 15:18
> To:   [EMAIL PROTECTED]
> Subject:      [iText-questions] PdfPTable  How do I get the Height?
> 
> Hi,
> 
>    I am new to the IText API..
> 
>    What I am trying to do is after I have built a PdfPTable but before I
>    add to the page I want to find out it's height.
> 
>    the method on PdfPTable  getRowHeight(int idx)  and getTotalHeight()
>    are returning  0.0    but when I add it to the document it printing
>    it all out..  so I know it is a false height report..
> 
>    What do I need to do to get the height?
> 
> - Jason
> 
> 
> 
> 
> _________________________________________________________________
> Chat with friends online, try MSN Messenger: http://messenger.msn.com
> 
> 
> _______________________________________________________________
> 
> Have big pipes? SourceForge.net is looking for download mirrors. We supply
> the hardware. You get the recognition. Email Us: [EMAIL PROTECTED]
> _______________________________________________
> iText-questions mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/itext-questions

_______________________________________________________________

Have big pipes? SourceForge.net is looking for download mirrors. We supply
the hardware. You get the recognition. Email Us: [EMAIL PROTECTED]
_______________________________________________
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to