Title: RE: [iText-questions] strategy for a table of contents?

Use page reordering. See the example reorder_pages.java in itextpdf.sf.net.

Best Regards,

Paulo Soares

    -----Original Message-----

    From:   [EMAIL PROTECTED] [SMTP:[EMAIL PROTECTED] On Behalf Of Gabe Johnson

    Sent:   Monday, December 08, 2003 16:48

    To:     [EMAIL PROTECTED]

    Subject:        [iText-questions] strategy for a table of contents?


    Hello all (and thanks to those who helped me earlier!)

    I am using iText to generate some very long reports based on a single

    database query. The first page (or few pages, depending) needs to have a

    sort of table of contents (toc), with subsequent pages containing the bulk

    of the content. The general algorithm that I imagine this should take is:

    // 1..n is the toc, n+1..m is the bulk content

    while(moreResults) {

      writeTOC(currentResult);  // writes to page 1..n

      writeBulkContent(currentResult); // writes to page n+1..m

    }


    My question is, is this possible given iText's architecture? The only part

    that I can find in the tutorial that helps me is the bit about

    concatenating separate (completed) pdf files. I'd like to avoid having to

    create two files, if possible, since there are quite a few reports to

    generate and i'd like to optimize for speed. (I would also like to avoid

    going through the entire result set twice, which is another approach I

    could take.)

    If somebody could just point me in the right direction (hey moron, didn't

    you see method xyz in class Foo?) that would probably be best.

    -gabe


    -------------------------------------------------------

    This SF.net email is sponsored by: SF.net Giveback Program.

    Does SourceForge.net help you be more productive?  Does it

    help you create better code?  SHARE THE LOVE, and help us help

    YOU!  Click Here: http://sourceforge.net/donate/

    _______________________________________________

    iText-questions mailing list

    [EMAIL PROTECTED]

    https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to