I'm encountering an issue with mergedoc and I'm not sure how to proceed.
Mergedoc returns
- Code: Select all
MergeDoc returned an error:Source 1 is unsupported document - contains reference to NULL image
For context, ...
It is currently Fri Sep 19, 2025 8:41 am
MergeDoc returned an error:Source 1 is unsupported document - contains reference to NULL image
File templateZip = new File("resources/doctest.docx")
WordprocessingMLPackage template = WordprocessingMLPackage.load(templateZip)
def map = ["pagebreak": "<w:r><w:br w:type=\"page\"/></w:r>"]
template.mainDocumentPart.variableReplace(map)
Total posts 10193 • Total topics 2868 • Total members 2098