Here's an example:

public PdfPTable getMoreRows() {
// This returns more rows, say 50.
// The result should be a table with an header and 50 rows.
// At the end it returns null.
}

public void main() {
// some code
    boolean skipHeader = false;
    PdfPTable table = null;
    while ((table = getMoreRows()) != null) {
        table.setSkipFirstHeader(skipHeader);
        skipHeader = true;
        document.add(table);
    }
    document.close();
}

Best Regards,
Paulo Soares

> -----Original Message-----
> From: Steve Appling [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, September 29, 2004 1:18 AM
> To: Paulo Soares; [EMAIL PROTECTED]
> Subject: Re: [iText-questions] large PdfPTables and fitsPage
> 
> How does skipFirstHeader help me effeciently render a very 
> large table?  I don't see how it is an
> alternative to fitsPage.
> 
> ----- Original Message ----- 
> From: "Paulo Soares" <[EMAIL PROTECTED]>
> To: "Steve Appling" <[EMAIL PROTECTED]>; 
> <[EMAIL PROTECTED]>
> Sent: Tuesday, September 28, 2004 5:46 PM
> Subject: RE: [iText-questions] large PdfPTables and fitsPage
> 
> 
> >I still don't care but Christian Lauer fixed fitsPage and it 
> will be available in the next release.
> Another option is to use skipFirstHeader.
> >
> >Best Regards,
> >Paulo Soares
> 
> 
> 


-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to