RTF Saving and OLEs

I am saving a docx as an rtf file. The docx contains an embedded ole which is also a docx.

OLETest1.docx (28.1 KB)

Document doc = new Document(filePath);
doc.save("C:\\OLETestResult1.rtf", SaveFormat.RTF);
doc.save("C:\\OLETestResult2.rtf", SaveFormat.RTF);

When I save the documents two times I get different results. The file sizes are different and the OLE can’t be open in the 2nd file but works in the first. Is the save changing the state of the document? This doesn’t occur when saving to other formats, only RTF.

@faith113
We have opened the following new ticket(s) in our internal issue tracking system and will deliver their fixes according to the terms mentioned in Free Support Policies.

Issue ID(s): WORDSNET-26450

You can obtain Paid Support Services if you need support on a priority basis, along with the direct access to our Paid Support management team.

Thank you, I should also mention that it even happens after cloning the document.

Document doc = new Document(filePath);
Document doc2 = doc.deepClone();
doc.save("C:\\OLETestResult1.rtf", SaveFormat.RTF);
doc2.save("C:\\OLETestResult2.rtf", SaveFormat.RTF);

@faith113 Thank you for additional information. I have added it to the defect description. We will keep you updated and let you know once it is resolved.

The issues you have found earlier (filed as WORDSNET-26450) have been fixed in this Aspose.Words for Java 24.3 update.