- Code: Select all
package myartifact;
import org.docx4j.openpackaging.packages.WordprocessingMLPackage;
import org.apache.log4j.BasicConfigurator;
public class HelloMavenCentral {
public static void main(String[] args) throws Exception {
BasicConfigurator.configure();
WordprocessingMLPackage wordMLPackage = WordprocessingMLPackage.createPackage();
String filename = "C:\\Users\\Mike\\Desktop\\My.docx";
wordMLPackage.load(new java.io.File(filename) );
}
}
Bombs out trying to find the "officeDocument" relationship type. There is a hard coded check for:
http://schemas.openxmlformats.org/offic ... ceDocument
but what ...