Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Namespace mapping problem in docx4j dependency #183

Open
NikitaShchienko opened this issue Jul 12, 2024 · 0 comments
Open

Namespace mapping problem in docx4j dependency #183

NikitaShchienko opened this issue Jul 12, 2024 · 0 comments
Assignees
Labels
type: bug Something isn't working

Comments

@NikitaShchienko
Copy link
Contributor

Environment

  • YARG version: 2.2.19

Description

Latest version of MS word is adding the namespace - http://schemas.microsoft.com/office/wor ... l/word16du - and it is creating a problem when an edit happens to the file using docx4j. When using such files in YARG, the user receives the message - Word Found unreadable Content’

Forum: https://forum.jmix.io/t/report-yarg-dependencies-breaking-docx-ouput-issue/5192
Issue: https://www.docx4java.org/forums/docx-java-f6/new-namespace-mapping-issue-t3112.html

This problem is resolved in version 8.3.10.

Workaround:

compile(group: "org.docx4j", name: "docx4j-JAXB-ReferenceImpl", version: "8.3.10") {
    exclude(group: 'junit', module: 'junit')
    exclude(group: 'log4j', module: 'log4j')
    exclude(group: 'org.slf4j', module: 'slf4j-api')
    exclude(group: 'com.fasterxml.jackson.core')
}
compile(group: "org.docx4j", name: "docx4j-ImportXHTML", version: "8.3.10") {
    exclude(group: 'junit', module: 'junit')
    exclude(group: 'org.apache.poi', module: 'poi')
    exclude(group: 'log4j', module: 'log4j')
    exclude(group: 'org.slf4j', module: 'slf4j-api')
    exclude(group: 'com.fasterxml.jackson.core')
}
compile(group: "org.docx4j", name: "docx4j-export-fo", version: "8.3.10") {
    exclude(group: 'junit', module: 'junit')
    exclude(group: 'log4j', module: 'log4j')
    exclude(group: 'org.slf4j', module: 'slf4j-api')
    exclude(group: 'com.fasterxml.jackson.core')
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants