Hi all,
I wonder if docx4j can insert a docx into another docx? i think it's very difficult in case compose a image.
thanks ,
It is currently Tue Aug 04, 2026 9:00 am
News of Forumsorg.docx4j.openpackaging.parts.WordprocessingML.MetafileWmfPart cannot be cast to org.docx4j.openpackaging.parts.WordprocessingML.BinaryPartAbstractImage invitation = new Invitation(templateProperties, InvitationTest.class
.getResource("/template.docx").getPath(), InvitationTest.class
.getResource("/").getPath());
WordprocessingMLPackage template = WordprocessingMLPackage
.load(new File(templateFilePath));
java.lang.IllegalArgumentException: javax.xml.bind.MarshalException
- with linked exception:
[javax.xml.bind.JAXBException: org.docx4j.openpackaging.packages.WordprocessingMLPackage is not known to this context]Total posts 10234 • Total topics 2888 • Total members 2109