This technique is generally working great and is much cleaner than what I originally 
envisioned.  I
am, however, having one problem.

I am using the PdfPTableEvent handler to draw a border around the entire table (since 
PdfPTable
doesn't derive from Rectangle like Table does).  This works fine with a single large 
table, but is
problematic when breaking tables up into small chunks - I can't tell the difference 
between an event
triggered by the end of a page and the event triggered by the end of my smaller table 
chunk.  In the
latter case, I don't want to draw the border.

Does anyone have an idea about how to handle this?

----- 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




-------------------------------------------------------
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