My document got corrupted

I was using (android) F-droid version libreoffice and i was opened experimental usage. I worked for hours for a file. I was saving it continously and when i tried open it again, it corrupted.
after-proofread.odt (56.1 KB)

How can i recover?

Try this.
after-proofread.odt (21.1 KB)

2 Likes

I love you man thank you
What was issue can you say why my file was corrupted

The ZIP package got some bytes after the data, which is strange. Anyhow, tools like 7-ZIP can unpack the files from the package; and then, it’s possible to repack it all into a new ZIP.

But the fact that LibreOffice can generate such invalid packages is worrying. It would be great to be able to repro this.

2 Likes

Can you give a forum link or instruction how can i fix it with 7zip and
if possible when file corrupted how can i recover it on phone without using a close source and googled, microsofted big companized software

In this specific case: easy. Using 7-zip, open the ODT (which is, actually, a ZIP). Extract everything to an empty directory. Then select everything from that directory, and pack into a new ZIP, which you rename then to ODT. (Note that this is not a perfectly correct procedure to create a package, because for it to be perfectly correct, the file order must be considered, and file packaging methods; but LibreOffice will ignore these details, and just open the resulting package.)

In a general case: even easier. You just hack a few years on LibreOffice, and become knowledgeable in the myriad possible problems, and some ways that could be used to try to recover data, which indeed would likely be individual for different cases.

Can you recommend zip extracter program for android i installed from f-droid zipXtract FD but it crashed when i sent .odt file changed name to .zip