TX Text Control .NET Server

Javascript: SignatureImage.setExportCompressionQuality Method

Method|Introduced in 31.0

Description

Sets the images's export compression quality as a value between 1 and 100.

Syntax

<void> SignatureImage.setExportCompressionQuality(<number> value, [<EmptyRequestCallback> callback], [<ErrorCallback> errorCallback])

Parameters

ParameterDescription
value

The new property value.

callback

Optional. Is called when the operation completed.

errorCallback

Optional. Is called when the operation failed with an error.

Examples

The following example demonstrates SignatureImage.setExportCompressionQuality in a practical document-editing workflow. It sets the images's export compression quality as a value between 1 and 100.

function onTxError(error) {
    console.error("TX Text Control error:", error.msg);
    error.handled = true;
}

function configureExportCompressionQuality(signatureImage) {
    signatureImage.setExportCompressionQuality(
        1,
        function() {
            console.log("set export compression quality completed.");
        },
        onTxError
    );
}