Mystery solution word paper cannot be opened (1)

 
 
The problem of egg pain, however, can be solved.
Next, follow the existing solutions to this problem,
View in Folder Browsing - File Extensions checked.
Change name.docx to name.zip, and then unzip it locally, as shown in the following figure:
Go to the word folder and see:
document.xml is what we have to toss.
Download the firstobject XML editor: http://www.orsoon.com/Soft/7799.html
The picture above shows that after opening document.xml - tools - indent typesetting - analyzing the document, it is found that there is a problem.
For example, in the example above, we need to add </w:rpr> at the position of 1627, pay attention here! ! There is a "/" in it.
Fill in whatever the start tag is</what>
Just "analyze the document" again and again until there are no errors.
Add the modified document.xml directly to the word in name.zip and delete the original one. Then change to name.docx.
It is found that there is still a problem with opening word!
At this time, because document.xml has been indented and typeset, the firstobject XMLbianjib editor cannot display the number of lines. This time, switch to Linux !
Copy the modified name.docx under the windows system to Linux, here I installed ubuntu16.04 LTS. Open it with the built-in LibreOffice and find that it is
Prompt error:
In fact, this is consistent with the office error prompt under Windows.
Let's go ahead and change name.docx to name.zip. Then extract the document.xml in the word in the zip. Edit with vim.
Under the console vi document.xml , that is, open it, and then according to the previous error prompt, we typed 94728gg and the cursor automatically jumped to this line, and found the problem:
In fact, in the first line of the file, the displayed thing is exactly the same as this line, we can just delete the content of 94728. Then hit ESC to enter the command line mode, hit: wq
Save and exit. Replace the modified document.xml with the one in the zip again, and rename it back to name.docx.
Open it with LibreOffice, success~~, and then save it as docx format.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326281707&siteId=291194637