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");

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

/* Style Definitions */ table.MsoNormalTable {mso-style-name:"Table Normal"; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-priority:99; mso-style-qformat:yes; mso-style-parent:""; mso-padding-alt:0cm 5.4pt 0cm 5.4pt; mso-para-margin:0cm; mso-para-margin-bottom:.0001pt; mso-pagination:widow-orphan; font-size:11.0pt; font-family:"Calibri","sans-serif"; mso-ascii-font-family:Calibri; mso-ascii-theme-font:minor-latin; mso-fareast-font-family:"Times New Roman"; mso-fareast-theme-font:minor-fareast; mso-hansi-font-family:Calibri; mso-hansi-theme-font:minor-latin; mso-bidi-font-family:"Times New Roman"; mso-bidi-theme-font:minor-bidi;}

<![endif]–>

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.