B
B
beduin012015-04-13 09:51:28
Zip
beduin01, 2015-04-13 09:51:28

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

1 answer(s)
G
Georg, 2018-03-25
@Georg

Hello, I have a similar question. Did you manage to solve?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question