What you must do is to associate a generic tag with some chunk of text. When that text is output a page event is called with the location and page number and you can build in memory your TOC tree.
 
Best Regards,
Paulo Soares


From: Dunstall, Christopher [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 11, 2004 10:23 PM
To: Paulo Soares
Subject: RE: [iText-questions] Table of Contents

Thanks!
 
I found your example for reordering the pages, but with making my TOC at the end, how do I know what element is on what page?  ie, If I have set text coming from the database, it could be 3 or 5 pages...  Is there a way to get the current page number before you add something to the document?
 
Thanks again!
 
 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Chris Dunstall
Analyst Programmer
 
Admin Computing
Bathurst Campus
Charles Sturt University
 
Phone:   +61 2 63384818
Fax:     +61 2 63384181
Mobile:  +61 0438 324 180
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-----Original Message-----
From: Paulo Soares [mailto:[EMAIL PROTECTED]
Sent: Thursday, 11 March 2004 8:46 PM
To: Dunstall, Christopher; [EMAIL PROTECTED]
Subject: RE: [iText-questions] Table of Contents

There's no automatic TOC but you can make your own. You can even put the TOC at the end of the document and then reorder the pages to move it to the first pages. See the examples in itextpdf.sf.net.
 
Best Regards,
Paulo Soares


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Dunstall, Christopher
Sent: Wednesday, March 10, 2004 10:30 PM
To: [EMAIL PROTECTED]
Subject: [iText-questions] Table of Contents

I know it's possible to do page numbers, but I was wondering if it were possible to produce a table of contents (like word does).

The primary use for my implementation of the pdf is to be printed out, and the client would like a table contents...
 
Is this possible?

 

<<Blank Bkgrd.gif>>

Reply via email to