Comparing the following two documents:
before.docx (25.7 KB)
after.docx (53.2 KB)
yields the following result (Java, 22.5):
aspose-diff.docx (66.5 KB)
but Word yields this instead:
word-diff.docx (68.1 KB)
The important differences are:
- Word preserves the existence of the fldChar nodes, which includes the
INCLUDEPICTURE
instrText. - Word does not add a
r:link
attribute to thea:blip
node. Aspose.Words add this attribute that points to a new rel that includes the URL from theINCLUDEPICTURE
instrText.
Word seems to prefer following the r:link
attribute when displaying the document, and in cases where the INCLUDEPICTURE
was pointing to an unreachable URL (for instance, if the URL requires authentication, or was a local path on the original author’s disk), Aspose’s addition of the r:link
attribute can break Word or other systems that attempt to follow the link instead of the r:embed
.
Tracked internally as #14662.