Hi,
Hi there,
Thanks for your inquiry. OleFormat class provides access to the data of an OLE object. Please use OleFormat.save method to save embedded object as shown in following code example. Hope this helps you.
Document srcDoc = new Document(MyDir + "in.rtf");
NodeCollection shapes = srcDoc.getChildNodes(NodeType.SHAPE, true);
for (Shape shape : shapes)
{
if (shape.getOleFormat() != null)
{
shape.getOleFormat().save(MyDir + "output" + shape.getOleFormat().getSuggestedExtension());
}
}