Page 1 of 1

How to add the table of contents in the existing Document?

PostPosted: Tue Dec 14, 2010 12:03 am
by Indhu
Hi Jason,
I have created the Table of Content for the existing document. My prob is the TOC adding in the end of the document.

Is there possibility to add TOC in the 2nd page? could someone tell me the suggestion what is the way to add it on the 2nd page?

I have attached the coding and documents both inputfile and outputfile.

Thanks in Advance,
Indhu.

Re: How to add the table of contents in the existing Document?

PostPosted: Thu Dec 16, 2010 11:31 pm
by jason
You simply add it at your desired position in Body's

Code: Select all
public List<Object> getEGBlockLevelElts()


If you want it on the second page, then assuming not too much content precedes it, just add a page break before it.

How to add the table of contents in the existing Document?

PostPosted: Fri Apr 15, 2011 5:57 pm
by sandeepwe45
how to add table of contents to existing document