klute wrote:

I want to create a table of contents containing a
crosstable of section names and their page numbers
(just like a traditional book). so i was thinking i
would generate two pdf's (one is for content and
another one is for the table of contents) and the
latter would be created after the former and based on
it, obviously. then i would merge them into one.

I would keep the TOC-entries and the pagenumbers in memory
(use PdfWriter.getPageNumber(), NOT Document.getPageNumber()).
When the document is finished, I would construct the TOC and
reorder the pages. There is a sample in Paulo's examples.zip...

br,
Bruno



-------------------------------------------------------
This SF.Net email sponsored by: Parasoft
Error proof Web apps, automate testing & more.
Download & eval WebKing and get a free book.
www.parasoft.com/bulletproofapps
_______________________________________________
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to