since 19.6 when opening a document the content control text is replaced with the content from linked CustomXml.
If a document is opened and saved again without making further changes, you will get a different result.
If the document is opened with Word, the content control text is not replaced.
When replacing the content control texts, the formatting is lost. During the processing of documents, the content controls are replaced by text, but should keep the formatting.
test.zip (16.5 KB)
The document contains a StructuredDocumentTag and a CustomXmlPart with an entry, both are linked.
The text of the StructuredDocumentTag is “test”. The content of the CustomXmlPart entry is “customxml”.
If the document is opened with Word, “test” is still displayed.
Document doc = new Document(".\test.docx");
After the document has been opened and saved with Aspose, “customxml” is displayed.
Is it possible to restore the old behavior (texts are not replaced), for example by using an option?