DS Server

Javascript: PageBorder.getSurroundFooter Method

Method|Introduced in 26.0

Description

Gets whether the page border surrounds the section's footer.

Syntax

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

Parameters

ParameterDescription
callback

Receives whether the page border surrounds the section's footer.

errorCallback

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

Examples

The following example demonstrates PageBorder.getSurroundFooter in a practical document-editing workflow. It gets whether the page border surrounds the section's footer.

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

function inspectSurroundFooter(pageBorder) {
    pageBorder.getSurroundFooter(
        function(result) {
            if (result) {
                console.log("get surround footer is available.");
            } else {
                console.warn("get surround footer is not available in the current document state.");
            }
        },
        onTxError
    );
}