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");
test.joinRunsWithSameFormatting();
System.out.println(test.getChildNodes(NodeType.RUN, true).getCount()); //returns 1
Document word = new Document("test-word.rtf");
word.joinRunsWithSameFormatting();
System.out.println(word.getChildNodes(NodeType.RUN, true).getCount()); //returns 3
Thanks
Romain