DS Server

Javascript: Barcode.getAngle Method

Method|Introduced in 28.0

Description

Gets the angle of the barcode image inside the control.

Syntax

<void> Barcode.getAngle(<RequestNumberCallback> callback, [<ErrorCallback> errorCallback])

Parameters

ParameterDescription
callback

Receives the angle.

errorCallback

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

Examples

The following example demonstrates Barcode.getAngle in a practical document-editing workflow. It gets the angle of the barcode image inside the control.

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

function inspectAngle(barcode) {
    barcode.getAngle(
        function(result) {
            console.log("get angle result:", result);
        },
        onTxError
    );
}