我正在使用 Open XML SDK for javascript...
我是从here下载的
我使用此 SDK 创建 Word 文档并将其保存在桌面上...
现在我想修改此文档的内容
例如:如果文本中有单词“firstname”,我想用“John”等更改该单词...
第二个我想要的是,在保存文档之前将其放入 .rar 或 .zip 文件中,然后像 .rar 一样保存在桌面上
有人可以帮助我吗?
最佳答案
if in the text is word "firstname", I want to change this word with "John" and so on...
second what I want is that before I save document put it in .rar or .zip file and then save it like .rar on desktop
- 将 .docx 文件重命名为 .zip,因为它们是 one and the same :
every Open XML file is essentially a Zip archive containing many other files. Office-specific data is stored in multiple XML files inside that archive. This is in direct contrast with the old WordML and SpreadsheetML formats which were single, non-compressed XML files. Although more complex, the new approach offers a few benefits:
引用文献
关于javascript - 用于 Javascript 的开放 XML SDK,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17614252/