ImageGear gives you the capability to compare text and image contents of documents by means of the API in the ImageGear.Comparison namespace.
Notes:
- Currently, only PDF documents are supported. The current algorithm was designed to process single-column documents only.
- Text added to the original content will be displayed in the same page in the annotated document, effectively enlarging the page size.
- Images are displayed in the annotated document in fixed locations where they were originally present.
The static class ImGearComparison provides functions to check whether the text and/or image content of two documents are different, by means of the following methods:
It also allows for the generation of a PDF document where any changes are annotated. The ImGearComparison.Compare method returns an IComparisonResult object which contains the GeneratePDFDocument method that generates the PDF document.
Below, an example is given how to compare two documents and save the document with the changes highlighted as markup.
For a detailed description of the comparison API, see ImageGear.Comparison.