org.odftoolkit:odfdom-java:0.11.0
val odt: OdfDocument = OdfTextDocument.loadDocument(file.toFile())
println("creating extractor")
val extractor = OdfEditableTextExtractor.newOdfEditableTextExtractor(odt)
println("extractor is here.... $file")
println("text:\n${extractor.text}")
return extractor.text
EXtracts, strangley, the author field but not text. And if I constrict extractor agains "odt.rootElement" it will return the last paragraph. No idea how to get the actual text.