英文:
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/
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论