Corrupt docm file

Help with installation and general system troubleshooting questions concerning the office suite LibreOffice.

Corrupt docm file

Postby rvoliva » Mon Nov 04, 2019 9:07 pm

Hello,

I have important text in a document that was saved in .docm format. I need to retrieve the text, I don't need any formatting or anything like that. If I could just get the text out of it that would be great.

Any help would be greatly appreciated.

Thanks,
Bobby
Attachments
document.docm
(21.04 KiB) Downloaded 57 times
OpenOffice 4.1 on Ubuntu 18.04
rvoliva
 
Posts: 2
Joined: Mon Nov 04, 2019 9:03 pm

Re: Corrupt docm file

Postby RoryOF » Mon Nov 04, 2019 9:17 pm

Outside of OpenOffice, rename to .docx and it should open for you. I got the attached
Attachments
document.odt
(16.32 KiB) Downloaded 53 times
Apache OpenOffice 4.1.7 on Xubuntu 20.04.1 (mostly 64 bit version) and very infrequently on Win2K/XP
User avatar
RoryOF
Moderator
 
Posts: 31543
Joined: Sat Jan 31, 2009 9:30 pm
Location: Ireland

Re: Corrupt docm file

Postby rvoliva » Mon Nov 04, 2019 9:32 pm

Thanks for the help. That doesn't seem to recover all the text that occurs after the error. This is the error I get when trying to open it:
"SAXException: [word/document.xml line 20]: Namespace prefix pic on bodyPr is not defined"
OpenOffice 4.1 on Ubuntu 18.04
rvoliva
 
Posts: 2
Joined: Mon Nov 04, 2019 9:03 pm

Re: Corrupt docm file

Postby RoryOF » Mon Nov 04, 2019 9:42 pm

Someone using different tools, that don't run on my computer, may get the full content.
Apache OpenOffice 4.1.7 on Xubuntu 20.04.1 (mostly 64 bit version) and very infrequently on Win2K/XP
User avatar
RoryOF
Moderator
 
Posts: 31543
Joined: Sat Jan 31, 2009 9:30 pm
Location: Ireland

Re: Corrupt docm file

Postby osnola » Tue Nov 12, 2019 1:28 pm

After adding xmlns:pic="http://schemas.openxmlformats.org/drawingml/2006/picture" in the w:document properties, LibreOffice seems able to reread the file...
document.odt
repaired file
(33.06 KiB) Downloaded 51 times
OpenOffice 3.4 with MacOS 10.6
osnola
 
Posts: 14
Joined: Sat Feb 26, 2011 12:59 pm


Return to LibreOffice

Who is online

Users browsing this forum: No registered users and 1 guest