GraphicalPdfComparer.CompareDocumentsToImages

GraphicalPdfComparer.CompareDocumentsToImages 方法

以图形方式比较文档。比较结果放置在图像中。

public void CompareDocumentsToImages(Document document1, Document document2, 
    string targetDirectory, string fileNamePrefix, ImageFormat imageFormat)
参数类型描述
document1Document第一个要比较的文档。
document2Document第二个要比较的文档。
targetDirectoryString保存比较结果的目录。
fileNamePrefixString图像名称前缀。
imageFormatImageFormat要保存的图像格式。

异常

异常条件
ArgumentException如果被比较的页面大小不同。如果 targetDirectory 为 null 或空字符串。如果 fileNamePrefix 为 null 或空字符串。

另请参阅