GroupDocsGists
10/24/2017 - 1:02 PM

SearchImageInAttachmentExcel.cs

using (CellsDocument doc = Document.Load<CellsDocument>(Utilities.MapSourceFilePath(FilePath)))
{
    // Consider only the attached images
    doc.SearchableObjects.CellsSearchableObjects = CellsSearchableObjects.AttachedImages;

    // Specify sample image to compare document images with
    ImageSearchCriteria criteria = new ImageDctHashSearchCriteria(Utilities.MapSourceFilePath(AttachmentPath));

    // Search for similar images
    PossibleWatermarkCollection possibleWatermarks = doc.FindWatermarks(criteria);

    // Remove or modify found image watermarks
}