We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

joinRunsWithSameFormatting does not work as expected

We want to compare two rtf files.
The first one is generated by Aspose (v14.2.0), and the second one is that file saved by MsWord(v2007) without making any manual modifications.
JoinRunsWithSameFormatting work as expected on the first file, however on the second file it does not join any runs.

Document test = new Document("test.rtf");
System.out.println(test.getChildNodes(NodeType.RUN, true).getCount()); //returns 1

Document word = new Document("test-word.rtf");
System.out.println(word.getChildNodes(NodeType.RUN, true).getCount()); //returns 3


Hi Romain,

Thanks for your inquiry.

I have tested the scenario and have managed to reproduce the same issue at my side. For the sake of correction, I have logged this problem in our issue tracking system as WORDSNET-9837. I have linked this forum thread to the same issue and you will be notified via this forum thread once this issue is resolved.

We apologize for your inconvenience.

The issues you have found earlier (filed as WORDSNET-9837) have been fixed in this .NET update and this Java update.

This message was posted using Notification2Forum from Downloads module by aspose.notifier.