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

Free Support Forum - aspose.com

RTF to HTML with tracking revisions

Hi there,
I’m having some issues with converting a RTF doc to HTML with tracking revisions.
Attached is a zip that contains the rtf and the converted html.
The the rtf has the red line along the side, but the html doesn’t and seems to leave the original text and then adds it again as strikethrough.
Any ideas?

I found a TrackRevisions setting and have tried it both enabled/disabled but doesn’t seem to affect anything.
I’m using aspose 15.8.0 jar.
Here’s the basic code i’m running:

Document doc = new Document(new ByteArrayInputStream(rtf.getBytes(“UTF-8”)));
doc.save(rtfFileName + “.html”, SaveFormat.HTML);

Let me know if you have any ideas.

Hi there,

Thanks for your inquiry. Please note that Aspose.Words mimics the same behavior as MS Word does. If you convert your document to Html using MS Word, you will get the same output.

If you want the red line along the side of page, please save the document to HTML_FIXED as shown in following code example. Hope this helps you.

Document doc = new Document(MyDir + “test_tracking_changes.rtf”);<o:p></o:p>



doc.save(MyDir + "Out.html", SaveFormat.HTML_FIXED);

Hi there,
When using the HTML_FIXED option, i get the below error:
Looks like it can’t find the font13.woff
I’m on a windows machine, is that a special font I need to find?

Exception in thread “main” java.io.FileNotFoundException: test_tracking_changes.rtf\font13.woff (The system cannot find the path specified)
at java.io.FileOutputStream.open(Native Method)
at java.io.FileOutputStream.(FileOutputStream.java:194)
at java.io.FileOutputStream.(FileOutputStream.java:84)
at asposewobfuscated.zzCC.zzZ(Unknown Source)
at asposewobfuscated.zzRY.zzNS(Unknown Source)
at asposewobfuscated.zzRY.zzO1(Unknown Source)
at asposewobfuscated.zzRX.endDocument(Unknown Source)
at asposewobfuscated.zzC6.endDocument(Unknown Source)
at com.aspose.words.zzZXD.zzZMS(Unknown Source)
at com.aspose.words.zz18.zzZ(Unknown Source)
at com.aspose.words.Document.zzZ(Unknown Source)
at com.aspose.words.Document.zzZ(Unknown Source)
at com.aspose.words.Document.save(Unknown Source)
at com.aspose.words.Document.save(Unknown Source)

Hi there,

Thanks for your inquiry.

Perhaps, you are using an older version of Aspose.Words; as with Aspose.Words v15.11.0, We are unable to reproduce this problem on our side. We suggest you please upgrade to the latest version of Aspose.Words i.e. v15.11.0. Hope this helps you.