如何在Java中获取Word文档中嵌入文档的数据

huangapple go评论62阅读模式
英文:

How to get the data of an embedded document inside a word document in Java

问题

我正在使用Aspose库的节点集合来逐个读取Word文档节点,但嵌入的文档被识别为形状节点。如何获取这些文档内部的数据?是否有使用Aspose Words或其他库来实现这一点的方法?

英文:

I am using Aspose library node collection to read a Word document node by node, but embedded documents are being identified as node of type shape. How can i get the data inside those documents. Is there any way to achieve this using Aspose words or any other library.

答案1

得分: 1

Aspose.Words文档对象模型中的嵌入对象由具有已设置的Shape.getOleFormat()属性的Shape节点表示。您可以检查OleFormat属性是否不为null来识别嵌入的OLE对象。
您可以从这篇文章了解有关使用OLE对象的更多信息:
https://docs.aspose.com/words/java/working-with-ole-objects/

英文:

Embedded objects in Aspose.Words Document Object Model are represented by Shape nodes with Shape.getOleFormat() property set. You can check whether OleFormat property is not null to identify embedded OLE objects.
You can learn more about working with OLE objects from this article:
https://docs.aspose.com/words/java/working-with-ole-objects/

huangapple
  • 本文由 发表于 2023年5月29日 19:48:07
  • 转载请务必保留本文链接:https://go.coder-hub.com/76357099.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定