Hi,
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.
//Need to update TOC if present
doc.updateFields();
doc.updateFields();
File tempFile = createTempFile();
//Save back
doc.save(tempFile.getPath(), SaveFormat.DOCX);
Thanks,
Chinmay