Answer the question
In order to leave comments, you need to log in
How to repack archive (docx)?
The situation is this. You need to change a few lines in docx. I open it as a zip, change the lines, pack it back, but after packing Word swears that the docx is damaged, but when I click "restore" it still opens the file.
I noticed that if I repack zip (with the same WInRAR), it does not matter what I change - docx starts to open everything as it should. Hence the idea is to call any archiver so that it updates the archive and then it will open normally for me. I suspect that different libraries just press zip in different ways, hence the problem.
Tell me, how is it easier to do everything?
I would not want to change the module for working with the archive, but if anything I use this code.dlang.org/packages/archive
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question