Hello,
Is it possible to merge two doc file.
In fact I use the merge variable example, but I would like to merge a document with a list of map.
My idea was to merge docx after docx and then merge the result docx.
Thank's.
It is currently Tue Dec 09, 2025 8:10 am
News of Forums WordprocessingMLPackage wmlPack = WordprocessingMLPackage.createPackage();
wmlPack.getMainDocumentPart().setContentType(new ContentType(ContentTypes.WORDPROCESSINGML_DOCUMENT_MACROENABLED));
wmlPack.save(new File("withMacro.docm"));
, but in real I find there this:<Override PartName="/word/document.xml" ContentType="application/vnd.ms-word.document.macroEnabled.main+xml" />
<Override PartName="/word/document.xml" ContentType="application/vnd.openxmlformats-officedocument.wordprocessingml.document.main+xml" />
Total posts 10216 • Total topics 2878 • Total members 2103