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
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
Phone: +61 2 63384818
Fax: +61 2 63384181
Mobile:
+61 0438 324 180
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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
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>>