Thanks for your inquiry. Please elaborate what do you mean by “outline of a doc” and “text of a table of content”? It would be great if you please also create a screenshot highlighting the areas in this document that you want to get and attach it here for our reference. We will investigate the scenarios on our end and provide you Java code to achieve this. Thanks for your cooperation.