Comparison Feature

Base_Comparison_Document_1.docx (35.7 KB)

Base_Comparison_Document_2.docx (37.6 KB)

Output
Output.docx (139.9 KB)

And why the image strike over is not in html document …If I remove an image

@Raghul214 Do yo mean the added empty paragraph?


This is an expected behavior, MS Word behaves exactly the same. Also, you should note that Aspose.Words does not control how MS Word displays the revisions.

in the table dossier: I added space

How can I change the highlight color

@Raghul214 Appearance of revisions are configured in the consumer application. These options are not stored in the file, so they are out of Aspose.Words control.

Ok about the highlight colour…Your telling…?
How can we change that…?

@Raghul214 Do you mean highlight color of the text? If so, you can configure it using Font.HighlightColor property.

No the revision like if its deleted strike through that colour…

@Raghul214 As I have mentioned, Appearance of revisions are configured in the consumer application. These options are not stored in the file, so they are out of Aspose.Words control. You can configure this only in MS Word:

1 Like

Output.docx (43.0 KB)

Output of html File.docx (60.2 KB)

I need the strike over also in html how to achieve that

@Raghul214 You can convert your document to HtmlFixed format and configure revisions appearance in the output document using RevisionOptions .

Document doc = new Document(@"C:\Temp\in.docx");

HtmlFixedSaveOptions opt = new HtmlFixedSaveOptions();
opt.PrettyFormat = true;
opt.ExportEmbeddedCss = true;
opt.ExportEmbeddedFonts = true;
opt.ExportEmbeddedImages = true;
opt.ExportEmbeddedSvg = true;

doc.Save(@"C:\Temp\out_html_fixed.html", opt);

In this case the output document will look the same as it looks in MS Word including revisions. Please note HtmlFixed is designed for viewing purposes and is not supposed to be edited or converted.

Still I am not getting… Only for images its not working

@Raghul214 Could you please be more specific? Unfortunately, it is not quite clear what exactly does not work. Please create a simple example that will demonstrate the problem and the expected output.

Yeah in one document I have added image and in another i removed it and added another

Doc_2.docx (18.4 KB)

Doc_1.docx (14.6 KB)

If I save in html document it is not strike through for removed content

OutPut.docx (17.6 KB)

Output in word.docx (17.8 KB)

one is screen shot of html file

@Raghul214
We have opened the following new ticket(s) in our internal issue tracking system and will deliver their fixes according to the terms mentioned in Free Support Policies.

Issue ID(s): WORDSNET-27305

You can obtain Paid Support Services if you need support on a priority basis, along with the direct access to our Paid Support management team.