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.setTrackRevisions(true);
doc.save(rtfFileName + “.html”, SaveFormat.HTML);
Let me know if you have any ideas.
Thanks!
Hi there,
Document doc = new Document(MyDir + “test_tracking_changes.rtf”);<o:p></o:p>
doc.getLayoutOptions().getRevisionOptions().setInsertedTextColor(RevisionColor.BLUE);
doc.getLayoutOptions().getRevisionOptions().setDeletedTextColor(RevisionColor.RED);
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?
Thanks,
Lance
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,