Hi Tahir,
Thank you for your kind response. Is there way to do this with out modifying documents? Because some documents already have titles but their style are different, and i don’t want to do changes on them. I already have document meta data on my database like title, I want to use that information generate toc if it’s possible?
You do not need to add heading text in the document. You can use the TOC field codes as shown below. The table of content will be generated for Heading and Title styles.