I tried comparing two PDF document and created a document showing difference between those document.
Comparison document not seems to be correct and not highlighting correct area.
I am using aspose words using dot net. Below is some sample code, Please provide some reference links or how we can get the valid compression document
MemoryStream c = new MemoryStream(); Stream mockedPdfDocumentStream = File.OpenRead(Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "FabBinderReport.Pdf")); Stream a = File.OpenRead(Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "Output.Pdf")); var docB = new Document(mockedPdfDocumentStream); Document docA = new Document(a); // There should be no revisions before comparison. docA.AcceptAllRevisions(); docB.AcceptAllRevisions(); docA.Compare(docB, "Author Name", DateTime.Now); // Saving comparison document docA.Save(c, "pdf");