I have a docx template , from which i generates the needed docx by way of content binding .
Now I also prefer to add some xhtml contents to the resultant docx on the run .
Which is the prefered and best way to accomplish this goal .
i found one possible solution is to use the method as described ,
- Code: Select all
wordMLPackage.getMainDocumentPart().getContent().addAll(
XHTMLImporter.convert( new File(inputfilepath + ".html"), null, wordMLPackage) );
but getting ...