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 Sun Aug 03, 2025 1:20 am
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 10189 • Total topics 2867 • Total members 2097