Interface: DocumentComparisonSource

PSPDFKit.DocumentComparisonSource

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

(nullable) pageIndex: number

optional

Page index of the source document to be used for document comparison.

Defaults to page 0.

Type:
  • number
Default Value:
  • 0

source: PSPDFKit.DocumentComparisonSourceType|string|ArrayBuffer|Promise.<(string|ArrayBuffer)>

Data for one of the source documents used for document comparison.

Type: