https://bugs.documentfoundation.org/show_bug.cgi?id=99686
Bug ID: 99686 Summary: content.xml corrupted Product: LibreOffice Version: unspecified Hardware: All OS: All Status: UNCONFIRMED Severity: normal Priority: medium Component: LibreOffice Assignee: libreoffice-bugs@lists.freedesktop.org Reporter: shunesbur...@yahoo.fr Created attachment 124848 --> https://bugs.documentfoundation.org/attachment.cgi?id=124848&action=edit Corrupted file I help sometimes people on a French forum (I'm French), and I see often people speak about corrupted files. The content.xml are corrupted by unknown issue. The only way to fix that is like that: First, let's call our nonopening ODT file as "bad.odt". 1- make backup FIRST -> "$ cp bad.odt bad_original.odt" 2- make new directory-> "$ mkdir repair" 3- copy bad.odt to repair directorty "$ cp bad.odt repair" 4- change default directory to repair -> "$ cd repair" 5- unzip bad.odt -> "$ unzip bad.odt" 6- after unzipping you get bunch of files and directory's under repair, find content.xml and open it whit your favorite text editor -> "$ kate content.xml" 7- use "find" function to find out, if you have XML tag "<office:automatic-styles>" (somewhere at the beginning of document) and XML tag "</office:automatic-styles>" (somewhere, middle of document). If you have, then delete them and all data between them. Be sure, that you don't delete more or less! 8- save content.xml (keep original name and place!) 9- zip extracted data back to one ODT document -> "$ zip -r ./bad_repaired.odt ./*" 10- try to open repaired document -> "$ ooffice ./bad_repaired.odt" Solution find here: https://forum.openoffice.org/en/forum/viewtopic.php?t=1532 There is a possibility, when the soft detect an error in the content.xml to propose to fix it like that by itself ? I put a document corrupted in attachment. -- You are receiving this mail because: You are the assignee for the bug.
_______________________________________________ Libreoffice-bugs mailing list Libreoffice-bugs@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs