javascript - 用于 Javascript 的开放 XML SDK

标签 javascript html xml sdk ms-word

我正在使用 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

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/

相关文章:

javascript - 我是否正确地履行了这些 promise ?

jquery - 使用 jquery 动态地在 img 标签后追加 div

python - 如何使用python添加处理指令节点?

javascript - IE11 不监听 MSFullscreenChange 事件

javascript - 使用 JQuery 选择 li 元素内的第一个 anchor

javascript - 如何在createTextNode中插入换行符

xml - 如何使用 LINQ to XML 包含 CData?

html - 我的 DIVS 不能正确放置

javascript - 单击按钮时输入框切换

android - RecyclerView 在 ConstraintLayout 中将其下方按钮推出屏幕