Hi,
am trying to read the TOC content of my docx file. my use case is based on toc item need to return the TOC content.
I am trying to get with tocfinder , but no luck.
Document wmlDocumentEl = documentPart.getJaxbElement();
Body body = wmlDocumentEl.getBody();
TocFinder finder = new TocFinder();
new TraversalUtil(body.getContent(), finder);
SdtBlock currentSDT = finder.getTocSDT();
Its retruning only the
[Contents, TOC \o "1-3" \h \z \u , , , , , , , , , , , , , , , , , , , , , , , ]
not sure how to read content based on the TOC.
Please help on this.