Comparer.CompareToImages

Comparer CompareToImages method. Compares two documents and saves the differences as images. Each item in the returned array represents a single page of the output rendered as an image.

CompareToImages(string, string, ImageSaveOptions, string, DateTime, CompareOptions)

Compares two documents and saves the differences as images. Each item in the returned array represents a single page of the output rendered as an image.

public static Stream[] CompareToImages(string v1, string v2, ImageSaveOptions saveOptions, 
    string author, DateTime dateTime, CompareOptions compareOptions = null)
ParameterTypeDescription
v1StringThe original document.
v2StringThe modified document.
saveOptionsImageSaveOptionsThe output’s image save options.
authorStringInitials of the author to use for revisions.
dateTimeDateTimeThe date and time to use for revisions.
compareOptionsCompareOptionsDocument comparison options.

Examples

Demonstrates how to compare two documents and save the output to an array of images streams.

Stream[] pages = Comparer.CompareToImages(MyDir + "CompareV1.docx", MyDir + "CompareV2.docx", new ImageSaveOptions(SaveFormat.Png), "Wordize", DateTime.Now);

See Also


CompareToImages(Stream, Stream, ImageSaveOptions, string, DateTime, CompareOptions)

Compares two documents and saves the differences as images. Each item in the returned array represents a single page of the output rendered as an image.

public static Stream[] CompareToImages(Stream v1, Stream v2, ImageSaveOptions saveOptions, 
    string author, DateTime dateTime, CompareOptions compareOptions = null)
ParameterTypeDescription
v1StreamThe original document.
v2StreamThe modified document.
saveOptionsImageSaveOptionsThe output’s image save options.
authorStringInitials of the author to use for revisions.
dateTimeDateTimeThe date and time to use for revisions.
compareOptionsCompareOptionsDocument comparison options.

See Also