thombergs / docx-stamper

Easy-to-use template engine for creating docx documents in Java.
MIT License
213 stars 90 forks source link

docx4j libraries are out of date #83

Closed roland-xwyy closed 4 years ago

roland-xwyy commented 4 years ago

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.

roland-xwyy commented 4 years ago

Can be resolved by adding these dependencies to project using stamper