It doesn't matter if the rows overflow to the next page. What you have
is a sequence of tables one after the other seamlessly connected with
possibly more than one table in the same page. The amount of rows you
put in each table is arbitrary, I usually put 50.

Best Regards,
Paulo Soares

> -----Original Message-----
> From: Steve Appling [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, September 29, 2004 11:57 AM
> To: Paulo Soares; [EMAIL PROTECTED]
> Subject: Re: [iText-questions] large PdfPTables and fitsPage
> 
> Thanks for the example, but how do you implement something 
> like your getMoreRows that will fill up a
> page without using fitsPage when adding rows to it?  If you 
> don't have a fixed row height that you
> know in advance, then it seems like you have to use fitsPage 
> after adding each row.  Even using
> fitsPage and removing the row doesn't work if the row might 
> be bigger than a page.
> 
> I don't particularly like using fitsPage, then removing the 
> line if it doesn't fit either, but I
> didn't see support for anything else.  fitsPage seems very 
> ineffecient.  It recalculates the height
> of all rows each time it is called.  I would really like some 
> type of streaming mode where you can
> give the PdfWriter to PdfPTable and then as each row is 
> added, the height (of only that row) is
> calculated and if it fits, it is immediately written to the 
> PdfWriter (and the row is removed from
> memory).
> 
> ----- Original Message ----- 
> From: "Paulo Soares" <[EMAIL PROTECTED]>
> To: "Steve Appling" <[EMAIL PROTECTED]>; 
> <[EMAIL PROTECTED]>
> Sent: Wednesday, September 29, 2004 5:39 AM
> Subject: RE: [iText-questions] large PdfPTables and fitsPage
> 
> 
> 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