Skip to content

Instantly share code, notes, and snippets.

@manzke
Created August 9, 2012 09:13
Show Gist options
  • Save manzke/3302569 to your computer and use it in GitHub Desktop.
Save manzke/3302569 to your computer and use it in GitHub Desktop.
Extract text of DOCX with Apache POI
XWPFDocument doc = new XWPFDocument(in);
XWPFWordExtractor ex = new XWPFWordExtractor(doc);
String text = ex.getText();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment