title: How to use getRange() method with XWPFDocument and getParagraphText() with XWPFWordExtractor?
body: <p>I am getting error when i am trying to use getRange with <code>XWPFDocument</code> and <code>getParagraphText()</code> with <code>XWPFWordExtractor</code>. How can i use them together? Do i need to convert my .docx to .doc? If yes then how to do that?</p>
  
  <pre><code>XWPFDocument docx = new XWPFDocument(new FileInputStream("textDocx.docx"));
  XWPFWordExtractor we = new XWPFWordExtractor(docx);
  Range range = docx.getRange();
  String[] paragraphs = we.getParagraphText();
  </code></pre>