Use PdfWriter.fitsPage(). If you want more precision you must abandon
document.add(). 

> -----Original Message-----
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On 
> Behalf Of John Sims
> Sent: Thursday, December 02, 2004 4:29 AM
> To: [EMAIL PROTECTED]
> Subject: [iText-questions] Determining if a PdfPTable will 
> fit on a page
> 
> I would like to determine if a PdfPTable will fit on the current page 
> before adding it do the document. I noticed the 
> getTotalHeight() method 
> on the PdfPTable that returns a float. What does this floating point 
> number represent? Is there a method to get the remaining 
> space/height on 
> the current page so that it can be compared to the tables 
> total height?
> 
> thanks,
> -john
> 
> 
> -------------------------------------------------------
> SF email is sponsored by - The IT Product Guide
> Read honest & candid reviews on hundreds of IT Products from 
> real users.
> Discover which products truly live up to the hype. Start reading now. 
> http://productguide.itmanagersjournal.com/
> _______________________________________________
> iText-questions mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/itext-questions
> 


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://productguide.itmanagersjournal.com/
_______________________________________________
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to