Specifies the data and settings for documents used for document comparison.
Example
instance.setDocumenComparisonMode({
documentA: {
source: PSPDFKit.DocumentComparisonSourceType.USE_OPEN_DOCUMENT,
pageIndex: 0,
strokeColor: PSPDFKit.Color.RED
},
documentB: {
source: PSPDFKit.DocumentComparisonSource.USE_FILE_DIALOG,
pageIndex: 0,
strokeColor: PSPDFKit.Color.BLUE
},
autoCompare: false
});
Members
Members
optional
Page index of the source document to be used for document comparison.
Defaults to page 0
.
Type:
- number
- Default Value:
- 0
Data for one of the source documents used for document comparison.
Type:
- PSPDFKit.DocumentComparisonSourceType | string | ArrayBuffer | Promise.<(string|ArrayBuffer)>