I create the PDF document from XML data, and I create the outline on the fly.
The TOC is done through a pre-parsing of the XML data for determining its entries
You can also use templates, that allow you to reference info that you will calculate 
later.

> -----Mensaje original-----
> De: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] nombre de
> [EMAIL PROTECTED]
> Enviado el: lunes, 17 de mayo de 2004 21:59
> Para: Bill Simpson
> CC: [EMAIL PROTECTED]
> Asunto: Re: RE: [iText-questions] TOC question, redux... {Scanned}
>
>
>
> Arrghhh. There must be a better way...
>
> I'm looking for a PDF analogue to the RTFTOC class...?
>
> ----- Original Message -----
> From: Bill Simpson <[EMAIL PROTECTED]>
> Date: Monday, May 17, 2004 3:16 pm
> Subject: RE: [iText-questions] TOC question, redux... {Scanned}
>
> > Here's how I do it.
> >
> > I maintain a data structure that is the table of contents.  As I'm
> > goingalong, I collect page number information, etc.  I then print
> > out the table
> > of contents at the end of my document.  When I print it out, I
> > switch from
> > numeric page numbers to roman numerals.  I do this because there's
> > no easy
> > way to go back and modify my page numbers that I've already
> > written.  Thus,
> > I don't even bother to try.  Once I've written out my table of
> > contents, I
> > use iText's ability to re-order pages, and move the table of
> > contents to the
> > front of the document.  It's pretty straight-forward.
> >
> > As far as page 1 of n, you can use a template and fill in 'n' at
> > the end of
> > the document.  PDF provides for these templates, so it's
> not an iText
> > specific methodology.  Let me know if you can't find code
> examples out
> > there, and I'll see if I can dig mine up.
> >
> > Hope that helps.
> >
> > Bill
> >
> > -----Original Message-----
> > From: [EMAIL PROTECTED]
> > [EMAIL PROTECTED] Behalf Of
> > [EMAIL PROTECTED]
> > Sent: Monday, May 17, 2004 11:36 AM
> > To: [EMAIL PROTECTED]
> > Subject: [iText-questions] TOC question, redux... {Scanned}
> >
> >
> > I know I've sort of asked this before, but I only received an
> > answer on how
> > to create an outline. How do I create a Table of Contents for the
> > beginningof a long, complex iText PDF? Specifically, how would I
> > place the TOC at the
> > beginning of a document when I don't know what the whole document
> > tree is
> > until I'm done parsing and writing the content? Is there a way to
> > do this in
> > one pass? (I'm really hoping so) MSWord allows you to
> programmatically
> > insert a TOC object at the beginning of a document from a
> template and
> > recalculate the whole document when you are done writing it. is
> > there an
> > itext equivalent?
> >
> > I'm sorry if the answer is buried in the mailing list archives,
> > I've tried
> > to do my due diligince, but the archives seem to be working
> eratically
> > today...
> >
> > Thanx in advance,
> > Jake
> >
> >
> >
> > -------------------------------------------------------
> > This SF.Net email is sponsored by: SourceForge.net Broadband
> > Sign-up now for SourceForge Broadband and get the fastest
> > 6.0/768 connection for only $19.95/mo for the first 3 months!
> > http://ads.osdn.com/?ad_id=2562&alloc_id=6184&op=click
> > _______________________________________________
> > iText-questions mailing list
> > [EMAIL PROTECTED]
> > https://lists.sourceforge.net/lists/listinfo/itext-questions
> >
> >
>
>
>
> -------------------------------------------------------
> This SF.Net email is sponsored by: SourceForge.net Broadband
> Sign-up now for SourceForge Broadband and get the fastest
> 6.0/768 connection for only $19.95/mo for the first 3 months!
> http://ads.osdn.com/?ad_id=2562&alloc_id=6184&op=click
> _______________________________________________
> iText-questions mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/itext-questions
>
> *************************************************************
> Este correo ha sido procesado por el antivirus del Grupo FCC.
> *************************************************************
>

*************************************************************
Este correo ha sido procesado por el antivirus del Grupo FCC.
*************************************************************


-------------------------------------------------------
This SF.Net email is sponsored by: SourceForge.net Broadband
Sign-up now for SourceForge Broadband and get the fastest
6.0/768 connection for only $19.95/mo for the first 3 months!
http://ads.osdn.com/?ad_id%62&alloc_ida84&op=click
_______________________________________________
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to