Thanks for the reply.
I have tried each of those(%,mm,in) without any change in the docx output.
Also, I'm getting this error msg, even though I don't have "em" in any of my css.
2014-05-13 06:48:51,762 [tomcat-http--35] WARN No support for unit: CSS_EMS; instead of em, please use an absolute unit.
2014-05-13 06:48:51,942 [tomcat-http--35] WARN No support for unit: CSS_EMS; instead of em, please use an absolute unit.
2014-05-13 06:48:52,103 [tomcat-http--35] WARN No support for unit: CSS_EMS; instead of em, please use an absolute unit.
2014-05-13 06:48:52,123 [tomcat-http--35] WARN No support for unit: CSS_EMS; instead of em, please use an absolute unit.
2014-05-13 06:48:52,124 [tomcat-http--35] WARN sourcePartStore undefined
I suspect I'm not setting up the import properly. All I'm doing is this:
- Code: Select all
InputStream byteStream = urlConn.getInputStream();
WordprocessingMLPackage wordMLPackage = WordprocessingMLPackage.createPackage();
XHTMLImporterImpl xhtmlImp = new XHTMLImporterImpl(wordMLPackage);
String baseURL = urlString.substring(0, urlString.lastIndexOf("/"));
wordMLPackage.getMainDocumentPart().getContent()
.addAll(xhtmlImp.convert(byteStream,baseURL));
wordMLPackage.save(outputStream);
I'm going to find a working example that doesn't give the "em" warning and go from there.