Workaround for bug in LibreOffice Writer when text is lost after saving and reopening docx files
When editing a docx file in the LibreOffice Writer 3/4, it is possible to lose all the text after a hyperlink after saving and reopening the document because they have an outstanding bug in the software.
I figured out how to fix the underlying xml data format and posted my steps on an existing bug report:
I have replicated my comment here:
I just encountered this serious bug when re-opening a docx document I was working on. All text after the hyperlinks was mysteriously deleted. I noticed that the file size was still very large despite most of the text missing, and then I tried to figure out a way to decode the docx format and recover the data inside the file somehow. I learned that the docx format is just a renamed zip archive in openxml format. After renaming the .docx to be .zip, I was able to open word/document.xml file and see that all the missing text was still there as a plain xml document. I deleted the xml tags related to the hyperlinks, then I zipped the files again and renamed the .zip to .docx. It worked! I was able to restore the hours of lost work. Hope this helps someone fix the bug and prevent losing their work! Perhaps the software is writing an invalid OpenXML syntax or when it reads it back out, it fails to read it correctly.
Make sure you don't save on top of the broken file, or you may permanently lose the ability to recover the information.
Another comment from Doug on the bug report discusses similar info about libreoffice not supporting hyperlinks the same way Word does, but didn't really explain how to fix it to recover your data.
This saved me from losing several hours of work.
I'm not planning on using the docx format anymore until this problem is confirmed fixed.
Hope this helps someone else!
Bookmark & Share
Popular tags on this blogPerformance |
Most Popular Articles
- Mass virtual hosting security tip when using a reverse proxy to connect to other servers
- Solution for MariaDB Field 'xxx' doesn't have a default value
- How to lock Windows immediately upon smart card removal
- Stop using sleep mode with Windows Bitlocker for better security. Learn how to use hibernate in Windows 8.
- Is Google Public DNS actually better then your ISP?
- Pros and Cons of CFML vs PHP and other languages
- SEO Forum Signature Links
- Run Windows Guest in CentOS 6 Linux Host using Virtualbox 4 via the command line