You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A shape (a line in this particular) in the header section
A rich text content control in the main document part
The rich text content control is to be replaced by a paragraph with an image: <p><img src="..."></img></p> (contained in the XML in escaped form).
After binding the content control with docx4j, when opening the resulting document in Word a “Word found unreadable content” error message is shown.
The issue goes away as soon as the shape is removed from the template's header section before doing the binding.
Attached is a working sample for reproducing the issue. Extract docx4j-xhtml-image.zip, check out Docx4jXhtmlImageTest.java, run mvn test and open out.docx in MS Word.
The text was updated successfully, but these errors were encountered:
The template DOCX file contains:
The rich text content control is to be replaced by a paragraph with an image:
<p><img src="..."></img></p>
(contained in the XML in escaped form).After binding the content control with docx4j, when opening the resulting document in Word a “Word found unreadable content” error message is shown.
The issue goes away as soon as the shape is removed from the template's header section before doing the binding.
Attached is a working sample for reproducing the issue. Extract docx4j-xhtml-image.zip, check out
Docx4jXhtmlImageTest.java
, runmvn test
and open out.docx in MS Word.The text was updated successfully, but these errors were encountered: