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
[ ] Regression (a behavior that used to work and stopped working in a new release)
[X] Bug report
[ ] Feature request
[ ] Documentation issue or request
[ ] Support request => Please have a look to the support pages of our website : http://m2doc.org/support/
Current behavior
If I generate an M2Doc document with an example like the attached one (minimized to the problematic issue), then a combination of .asImage() and the footer (especially the text box in the footer) leads to a corrupt Word document. Can be fixed by Word when opening, but that’s annoying. The visible content is then as expected.
If you remove either the asImage() service usage or the text box, it works fine.
Note: I had difficulties identifying the problematic element from the footer, which originally had more elements - sometimes even the black background picture was enough to cause the issue. So it’s not limited to a textbox itself. I could provide more examples, if needed.
Expected behavior
Generation of a Word document, which is not corrupt.
Minimal reproduction of the problem with instructions
Use the attached template and assign a valid e.g. .png file path to the variable before .asImage() Note that we use m2doc programmatically with our EMF based tool, so "'../../'.concat(myExternalDocumentPicture.uri)" might have to be adapted when using another Eclipse tool.
Generate the document
Word opens and says that it found "unreadable content" (screenshot in the template file).
What is the motivation / use case for changing the behavior?
Correct the behaviour. Identifying the problematic combination of m2doc commands and other template elements is difficult, as there is no error message.
Environment
M2Doc version: 3.2.0
Eclipse version: not fully sure, as our tool is built with Eclipse (but not by me). If needed, I can find out (which Eclipse library/part is important?)
Platform version: Windows 11
Office: MS Word 365
Others:
The use of text areas in header/footer is a known limitation of M2Doc (see #312). For the moment a workaround can be to replace the text area with something else: table or some text with pagination.
I'm submitting a...
Current behavior
If I generate an M2Doc document with an example like the attached one (minimized to the problematic issue), then a combination of .asImage() and the footer (especially the text box in the footer) leads to a corrupt Word document. Can be fixed by Word when opening, but that’s annoying. The visible content is then as expected.
If you remove either the asImage() service usage or the text box, it works fine.
Note: I had difficulties identifying the problematic element from the footer, which originally had more elements - sometimes even the black background picture was enough to cause the issue. So it’s not limited to a textbox itself. I could provide more examples, if needed.
Expected behavior
Generation of a Word document, which is not corrupt.
Minimal reproduction of the problem with instructions
Note that we use m2doc programmatically with our EMF based tool, so "'../../'.concat(myExternalDocumentPicture.uri)" might have to be adapted when using another Eclipse tool.
What is the motivation / use case for changing the behavior?
Correct the behaviour. Identifying the problematic combination of m2doc commands and other template elements is difficult, as there is no error message.
Environment
Files:
minimal_example.docx
minimal_example.output.docx
The text was updated successfully, but these errors were encountered: