hi Just an update to say that I followed the steps described here with success, the result is fine.
The question on the "recommanded" method used to achieve this "content with click-able TOC and index displaying page numbers" stays, but hey, that's at least a start if needed. zedros wrote: > > Currently, the way I'm doing it is the following (well almost, some > bits are still missing, but that the way I'll follow) : > - I use a modified ChapterEvents which add a named destination called > TOC after each section, as well as register chapter/section titles and > page number > - I use IndexEvents for the index part, based as well on local goto > and page number > - when all the content is parsed, I first create a new pdf with only > the TOC, to know how many pages it'll do (adding manually a chapter > for the index). I store this number > - I then create a new page, add the named destination TOC, and the > chapter/section titles, pages number (each one added of the TOC number > of page) and links > - I move the pages corresponding to the TOC at the beginning > (reordering the pages) > - I finally add the index and its links, still adding the number of > page of the TOC to the page numbers I've stored > > Is it a better way to do it ? > ++ zeros -- View this message in context: http://www.nabble.com/Content-with-a-TOC-before-and-an-index-after%2C-both-of-them-clicklable-%09and-showing-page-numbers...-tp22565667p22582578.html Sent from the iText - General mailing list archive at Nabble.com. ------------------------------------------------------------------------------ Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are powering Web 2.0 with engaging, cross-platform capabilities. Quickly and easily build your RIAs with Flex Builder, the Eclipse(TM)based development software that enables intelligent coding and step-through debugging. Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com _______________________________________________ iText-questions mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.1t3xt.com/docs/book.php
