Corrupted TargetMode attribute value in Relationship tag

I’m using Aspose.Words for .NET version 15.3.0

The following code corrupts the document and prevents images from being displayed:

var document = new Aspose.Words.Document(“source.docx”);
document.JoinRunsWithSameFormatting();
document.UpdateFields();
document.Save(…);

As far as I understand, this happens because some tags are corrupted. For instance, here is an example of one image from the souce document:

<v:imagedata r:id="rId234" r:href="rId235"/>
<Relationship Id="rId234" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/image" Target="media/image117.jpeg"/>
<Relationship Id="rId235" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/image" Target="media/image118.jpeg" TargetMode="External"/>

And here is the same image from the target file:

<v:imagedata r:id="rId127" r:href="rId128" o:title="" />
<Relationship Id="rId127" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/image" Target="media/image117.jpeg" TargetMode="External" />
<Relationship Id="rId128" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/image" Target="media/image118.jpeg" TargetMode="External" />

As you can see, TargetMode attribute is messed up.

Hi Artem,

Thanks for your inquiry. Could you please share the page number along with screenshots of problematic section of output document? We will investigate the issue on our side and provide you more information.