When using docx-stamper to process template written with MS Office 2019 for Mac, Word displays following warning 'Word found unreadable content in "xxx". Do you want to recover the contents of this document? If you trust the source of this document, click Yes.' on opening the result.
Fix is to update docx4j dependencies for docx-stamper as docx4j has changed project structure:
When using docx-stamper to process template written with MS Office 2019 for Mac, Word displays following warning 'Word found unreadable content in "xxx". Do you want to recover the contents of this document? If you trust the source of this document, click Yes.' on opening the result.
Fix is to update docx4j dependencies for docx-stamper as docx4j has changed project structure:
compileOnly("org.docx4j:docx4j-JAXB-Internal:${docx4JVersion}")
compileOnly("org.docx4j:docx4j-core:${docx4JVersion}")
where docx4JVersion was set to 8.2.0, latest at the time of writing.