DS Server

Javascript: PageSize.getHeight Method

Method|Introduced in 26.0

Description

Gets the page height of a document or document section.

Syntax

<void> PageSize.getHeight(<RequestNumberCallback> callback, [<ErrorCallback> errorCallback])

Parameters

ParameterDescription
callback

Receives the page height of a document or document section.

errorCallback

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

Examples

The following example demonstrates PageSize.getHeight in a practical document-editing workflow. It gets the page height of a document or document section.

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

TXTextControl.pageSize.getHeight(
    function(result) {
        console.log("get height result:", result);
    },
    onTxError
);