I am currently evaluating aspose Words. I have source document (.docx) which I load using aspose, then calling updateFields() and saving the word file back as docx format. I am observing that in some cases, the shapes within the source document get transformed into images. Please refer the attached source.docx and final.docx for reference. Note that in source I had some rectangular shape objects which can be expanded when needed. But observe that in the final.docx the same shapes are now an image. Not sure why doc.updateFields() is causing this problem. BTW, I am calling doc.updateFields() to refresh table of contents (not there is sample file). Also, the source document was generated using google docs. Not sure if it has to do something with that.
Here is the code run to generate this behavior.
Document doc = new Document(sourceFile);
//Need to update TOC if present
File tempFile = createTempFile();