Ask Your Question
0

got error loading docx

asked 2016-08-05 08:41:07 +0100

sammazza gravatar image

File format error found at when trying to open the file SAXParseException: '[word/document.xml line 2]: Attribute w:hAnsiTheme redefined ', Stream 'word/document.xml', Line 2, Column 86307(row,col).

noting in the backup folder. Windows 10/ libreoffice 5.1.4.2 x64

how can I fix/recover the file?

thanks

edit retag flag offensive close merge delete

Comments

You can convert your corrupted doc or docx in pdf first from given link https://www.freepdfconvert.com/ and then change it to pdf to doc. Try It. May be possible to get 90% data back.

ayush.kumar gravatar imageayush.kumar ( 2018-07-13 14:40:08 +0100 )edit

2 Answers

Sort by » oldest newest most voted
0

answered 2016-08-05 09:21:41 +0100

floris v gravatar image

Make a copy of the file, change the extension to 'zip', extract the 'word/document.xml' from the archive, open it in a real plain text editor, or a real XML editor (one that doesn't refuse to open a file with errors), remove the error, save, enter it in the archive and it should work.

edit flag offensive delete link more

Comments

original file was in LibreOffice. I pasted some comments from a MS word doc. but I am not sure that was the cause of the problem. maybe too many xml clauses switching between languages. Sadly I am back to using MS Word.... thanks for the help.

sammazza gravatar imagesammazza ( 2016-08-06 22:14:18 +0100 )edit
0

answered 2016-08-06 09:10:01 +0100

sammazza gravatar image

Not easy to fix the error. there seem to be many. And the text seems truncated. probably a bug in LibreOffice. I should say the language of the doc is Hebrew with some english characters. is it possible that there is more text that is not visible in the document.xml file that I could retrieve?

edit flag offensive delete link more

Comments

How did you get the file in that state? Was it converted from LibreOffice, did you get it from somebody? It's on you to provide all the information that other people need so they can help you. The AOO community forum may be a better place to get help because there aren't any restrictions on posting there and it has many experienced users of Libre as well.

floris v gravatar imagefloris v ( 2016-08-06 11:51:07 +0100 )edit
Login/Signup to Answer

Question Tools

1 follower

Stats

Asked: 2016-08-05 08:41:07 +0100

Seen: 410 times

Last updated: Aug 06 '16