TX Text Control .NET Server

Javascript: Page.getFooter Method

Method|Introduced in 28.0

Description

Gets the footer of the page.

Syntax

<void> Page.getFooter(<RequestHeaderFooterCallback> callback, [<ErrorCallback> errorCallback])

Parameters

ParameterDescription
callback

Receives the footer of the page.

errorCallback

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

Examples

The following example demonstrates Page.getFooter in a practical document-editing workflow. It gets the footer of the page.

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

function inspectFooter(page) {
    page.getFooter(
        function(headerFooter) {
            if (!headerFooter) {
                console.warn("No header footer was returned.");
                return;
            }
            
            console.log("get footer result:", headerFooter);
        },
        onTxError
    );
}