DS Server

Javascript: PageBorder.setLeftLineWidth Method

Method|Introduced in 26.0

Description

Sets the width of the left border line.

Syntax

<void> PageBorder.setLeftLineWidth(<number> leftLineWidth, [<EmptyRequestCallback> callback], [<ErrorCallback> errorCallback])

Parameters

ParameterDescription
leftLineWidth

The width of the left border line.

callback

Optional. Is called when the operation completed.

errorCallback

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

Examples

The following example demonstrates PageBorder.setLeftLineWidth in a practical document-editing workflow. It sets the width of the left border line.

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

function configureLeftLineWidth(pageBorder) {
    pageBorder.setLeftLineWidth(
        1440,
        function() {
            console.log("set left line width completed.");
        },
        onTxError
    );
}