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
We are using this library to convert our own datasets to Word documents. The thing is that we have separate semantics for e.g. Paragraphs, Images and so on. I am now writing a converter which iterates element by element while filling sections, headers, footers and possibly more.
Very often the resulting DOCX file cannot be opened by Word, casually displaying the "corrupted file contents dialog".
Interesting part is, that other applications like Pages on macOS, or also LibreOffice can preview and open those files.
In general, how do you validate and precisely trace your document output? Any chance to validate the structure and get human readable errors?
Also welcoming third party modules by unpacking and directly analyzing the packed XMLs instead of the DOCX file.
P.S.: Using the Word native repair/restore functionality does not work with those corrupted files.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
We are using this library to convert our own datasets to Word documents. The thing is that we have separate semantics for e.g. Paragraphs, Images and so on. I am now writing a converter which iterates element by element while filling sections, headers, footers and possibly more.
Very often the resulting DOCX file cannot be opened by Word, casually displaying the "corrupted file contents dialog".
Interesting part is, that other applications like Pages on macOS, or also LibreOffice can preview and open those files.
In general, how do you validate and precisely trace your document output? Any chance to validate the structure and get human readable errors?
Also welcoming third party modules by unpacking and directly analyzing the packed XMLs instead of the DOCX file.
P.S.: Using the Word native repair/restore functionality does not work with those corrupted files.
Beta Was this translation helpful? Give feedback.
All reactions