I have a problem with docx4j - using ConvertOutHtml example I'm converting from docx to html and then using
- Code: Select all
wordMLPackage
.getMainDocumentPart()
.getContent()
.addAll(xHTMLImporter.convert(
new File(inputfilepath + ".html"), null));
wordMLPackage.save(new java.io.File(outputfilepath));
System.out.println("Saved: " + outputfilepath);
back to docx. My problem is that output file has only Calibri font, no headers and no footers. Fonts and footers appear in html file without problems. Could anyone help?
Thanks,
Mateusz

News of docx4j