I want to generate a Table of content document using doc4j. I tried the below sample program and it worked. However, I want the following changes and I am not sure how to do it. I have attached the document which describes what exactly I want.
1. When the user clicks on Heading 1 or Heading 2 in TOC, the cursor is taken to the detailed section. Now I want to show a detailed paragraph ...