My
unzip tool (supplied by MacOS) reported that content.xml was damaged; it's been truncated:
inflating: content.xml
error: invalid compressed data to inflate
Inspecting the file,
only the first portion of the document is present. I have no way to tell how much was lost. I added a line at the end of content.xml to supply four closing tags:
endtags='></text:p></office:text></office:body></office:document-content>'
old='Damaged File by MorbidWanderer5.odt'
new='202310131545.odt'
cd ~/Downloads
unzip "$old" content.xml
echo "$endtags" >>content.xml
cp "$old" "$new"
zip -m "$new" content.xml
Edit: Oops. endtags should not have started with >:
endtags='</text:p></office:text></office:body></office:document-content>'
|
This is all of the recoverable data I could get from your file (14 pages). Consider implementing a backup strategy on your system to reduce the pain of data loss.
If this solved your problem please go to your first post use the Edit ☐ button and add [Solved] to the start of the Subject field. Select the green checkmark icon at the same time.
Mr. Programmer
AOO 4.1.7 Build 9800, MacOS 13.7.8, iMac Intel. The locale for any menus or Calc formulas in my posts is English (USA).