Customize highlight color when comparing PDF documents

Good afternoon, everyone.


I'm using the PDF comparison method (by pixels) as listed in the following article:

https://support.syncfusion.com/kb/article/13493/how-to-compare-two-pdf-documents-in-aspnet-core

Using the method with the ICompareSettings parameter, I can specify HighlightColor, LowlightColor and MasklightColor. However, I need and would like to customize the colors considering the differences added and removed (separately), with different colors.

Is this possible?


image1.png 

Document one (original):

pdf1.png

Document two (modified):

pdf2.png

Result:

compare result.png




1 Reply

CM Chinnu Muniyappan Syncfusion Team March 18, 2025 04:11 PM UTC

Hi Deivid Lorenz,

We utilized the ImageMagick library to compare PDF documents by converting them to images. While we explored various approaches to applying different colors for added and removed differences, we were unable to find a workable solution within the library’s capabilities. Unfortunately, this prevented us from proceeding further with this approach.


Regards,

Chinnu M



Loader.
Up arrow icon