I'm trying to open a docx Word document containing images. I try it using the code from the wiki:
- Code: Select all
WordprocessingMLPackage wordMLPackage = WordprocessingMLPackage.load(new java.io.File(inputfilepath));
But this throws an exception since the type image/jpeg is not supported.
Is there another way to open/load the document? I'm not interested in the image, I just want to have a handle to the main document so I can change the text in it.
Thanks
Henk