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)
Parameter | Type | Description |
---|---|---|
v1 | String | The original document. |
v2 | String | The modified document. |
saveOptions | ImageSaveOptions | The output’s image save options. |
author | String | Initials of the author to use for revisions. |
dateTime | DateTime | The date and time to use for revisions. |
compareOptions | CompareOptions | Document 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
- class ImageSaveOptions
- class CompareOptions
- class Comparer
- namespace Wordize.Comparing
- assembly Wordize
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)
Parameter | Type | Description |
---|---|---|
v1 | Stream | The original document. |
v2 | Stream | The modified document. |
saveOptions | ImageSaveOptions | The output’s image save options. |
author | String | Initials of the author to use for revisions. |
dateTime | DateTime | The date and time to use for revisions. |
compareOptions | CompareOptions | Document comparison options. |
See Also
- class ImageSaveOptions
- class CompareOptions
- class Comparer
- namespace Wordize.Comparing
- assembly Wordize