当前位置:网站首页>Sorry, we can't open xxxxx Docx, because there is a problem with the content (repackaging problem)

Sorry, we can't open xxxxx Docx, because there is a problem with the content (repackaging problem)

2022-07-05 13:04:00 [email protected]

docx File modification suffix is zip After decompression , The above problem occurs in repacking
solve :
1,
 Insert picture description here
stay Select all in the unzipped file , And compress , Select store only
 Insert picture description here
Then it is changed to docx that will do
problem
After compression, the size of the back is significantly larger than that of the front , And from the code , After compression, you can directly read the contents of the document , And the previous one is completely unreadable , It's all gibberish , I don't know what has changed in the middle
 Insert picture description here

 Insert picture description here

2,
As shown below , Direct use of golang Code changes word The content in
 Insert picture description here
here , If modified word Too much content in , There will be an open failure , The current solution is , Modify corresponding characters directly , That is, the modified string digits are the same , Will not be added or deleted , This kind of opening will not fail .

原网站

版权声明
本文为[[email protected]]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/02/202202140524137686.html