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 Fri Jul 11, 2025 12:31 pm
org.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 10182 • Total topics 2865 • Total members 2096