Currenlty I am working on DWF file which can be treated as ZIP file. I need to update single *.content.xml file within DWF file.
Here is what I did:
1, Read DWF file as zip file, ( No problem in this step)
2, Find that *.content.xml file in root directory, Then extract it to a temp folder and update that file
3, go back to DWF update *.content.xml file using UpdateFile() , Put updated file in the root directory.
4, Call Save() to save DWF file. Here is the problem. After this SAVE() was called, the DWF could not be opened at all. Seems like this DWF file was damaged.
Also, I tried to use WinZip to do the same work manually and got no problem. Sucessfully update that *.content.xml file without DWF file damaged. Since I dont know about the details of WinZip. Here is what I did. Use WinZip to open DWF file
--> All files inside DWF are listed in WinZip ---> Drag updated *.content.xml to WinZip window to update the old one ---> Close WinZip. That is it.
So, my question is if I can achieve the same result by using DotnetZip?
Any help is appreciated. Thanks,