Word文档中不同类型的超链接

发布于 2024-08-03 19:46:14 字数 286 浏览 1 评论 0原文

我正在编写一个小应用程序,它采用路径作为输入,然后获取该路径中的每个 docx 文件,用关键字替换每个超链接。

奇怪的是,我发现了两种超链接,第一种来自 WordprocessingDocumentExternalRelationships,另一种来自查找以 HYPERLINK 开头的与 匹配的每个 xml 节点。

是否有更多方法可以在 docx 文件中使用超链接,或者更好的是,是否有更好的方法通过 ooxml-api 查找文档中的每个超链接?

I'm writing a small app the takes a path as input and then fetches every docx file in that path, replacing every hyperlink with a keyword.

The strange thing is that I found two sorts of hyperlinks, the first one is from WordprocessingDocument ExternalRelationships and the other one is from finding every xml-node matching <w:insrText/> starting with HYPERLINK.

Are there any more ways a hyperlink can be used in a docx file or even better is there a better way through the ooxml-api finding every hyperlink in the document?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

骷髅 2024-08-10 19:46:14

就是这两个,是的,在 Word 中存储同一内容有两种不同的方式。

Those two are it and yes there are two different ways of storing the same thing in Word.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文