Trying to extract the content under a particular heading(Heading 2) in the document . How to achieve it ?
(In reply to Akash from comment #0) > Trying to extract the content under a particular heading(Heading 2) in the > document . > How to achieve it ? Traverse all paragraphs and get the style ID through paragraph.getStyleID(), get all styles through XWPFDocument.getStyles() or XWPFDocument.getStyle(). Get what you want by comparing style names(Pay attention to the style name in your document).
Resolving for now as no actual issue, please use the contact options described at http://poi.apache.org/help/index.html for discussing usage of Apache POI.