DS Server

Javascript: PageBorder.getFirstPageOnly Method

Method|Introduced in 26.0

Description

Gets whether the page border is drawn only on the first page of the section.

Syntax

<void> PageBorder.getFirstPageOnly(<RequestBooleanCallback> callback, [<ErrorCallback> errorCallback])

Parameters

ParameterDescription
callback

Receives whether the page border is drawn only on the first page of the section.

errorCallback

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

Examples

The following example demonstrates PageBorder.getFirstPageOnly in a practical document-editing workflow. It gets whether the page border is drawn only on the first page of the section.

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

function inspectFirstPageOnly(pageBorder) {
    pageBorder.getFirstPageOnly(
        function(result) {
            if (result) {
                console.log("get first page only is available.");
            } else {
                console.warn("get first page only is not available in the current document state.");
            }
        },
        onTxError
    );
}