Nutrient Web SDK

ReferenceDocumentComparisonConfiguration

Type Alias DocumentComparisonConfiguration

Defines specific configuration options related to the document comparison feature. Passed when calling Instance#setDocumentComparisonMode.

Type Alias

Example

instance.setDocumentComparisonMode({
documentA: {
source: NutrientViewer.DocumentComparisonSourceType.USE_OPEN_DOCUMENT
},
documentB: {
source: NutrientViewer.DocumentComparisonSourceType.USE_FILE_DIALOG
},
autoCompare: false
});

Properties

boolean

Set to true to perform automatic comparison without manual alignment of both documents. Set to false to manually align them.

blendMode

Optional

    | "normal"
    | "multiply"
    | "screen"
    | "overlay"
    | "darken"
    | "lighten"
    | "colorDodge"
    | "colorBurn"
    | "hardLight"
    | "softLight"
    | "difference"
    | "exclusion"

Blend mode to be used for overlaying the two source documents when performing document comparison.

Default Value

"darken"

Settings for the base document used for document comparison.

Settings for the second document used for document comparison.

strokeColors

Optional

Stroke colors to be used for the base and second documents strokes when overlaid for document comparison.

Default Value

{ documentA: new NutrientViewer.Color({ r: 245, g: 40, b: 27 }), documentB: new NutrientViewer.Color({ r: 49, g: 193, b: 255 }) }