Ask Your Question

chthon's profile - activity

2015-12-18 00:42:04 +0200 received badge  Taxonomist
2014-05-15 17:52:06 +0200 received badge  Famous Question (source)
2014-03-20 20:35:04 +0200 answered a question How can I repair a corrupted odt file

I tried opening the file with AbiWord, which succeeded but wasn't really in a useful format. I could restore the text but I was more interested in restoring my formulas.

I downloaded Apache OpenOffice, both stable 4.0.1 and 4.1.0 Beta. Using the Beta version, when attempting to open the file, I was able to get a more informative error (sub-document content.xml in location 530,75 (row,col)), but even better I was able to insert the corrupted file in a new empty document with all the contents intact except one small formula object.

LibreOffice should be more forgiving and more resilient to these type of issues. My file was almost fully recoverable and I might have ended up re-writting it from scratch.

2014-03-20 19:43:02 +0200 received badge  Notable Question (source)
2014-03-20 17:54:41 +0200 commented answer How can I repair a corrupted odt file

I have already done this. As you can see, I've followed a number of steps the average LO user wouldn't do. I was hoping there was some repair method or utility that could recover most of the document, preferrably, something quicker than re-writting the document from scratch.

2014-03-20 13:32:19 +0200 received badge  Popular Question (source)
2014-03-20 01:30:55 +0200 received badge  Editor (source)
2014-03-20 01:30:09 +0200 asked a question How can I repair a corrupted odt file

I was working on a document with my math assignement, regurally saving it. At some point I notice some weird behaviour, when trying to edit one math formulas, its contents were changing to exactly the same as another math object.

I decided to save my work and restart libreoffice, there was no indication that the save failed, but the file now doesn't open. A pop up window with title "LibreOffice" that says "Read-Error Error reading file" without any usefull information about the error. Backup option on Load/Save was not enabled.

I can unzip the odt just fine and run xmllint on the contents.xml, without any errors. It seems I have enough data on the file, but no way to recover any of it. I've spent a few hours working on this file, is there any way to recover any part of it? I'm interested only on the math formulas, it's a huge pain to recreate.



In the with the unziped contentes, by running file ObjectReplacements/* I was able to spot which objects are StarView MetaFiles. Renamed them so they end in .svm and now I'm able to import them as pictures in a new document. I can't edit them, but at least I won't have to recreate all the formulas manually.

Still interested on how to recover the original file though.


Finally made it by using the Apache OpenOffice Beta. See answer below.