TX Text Control .NET Server

RequestPaperSizeCallback Function

Function

Description

Callback function for requesting an array of paper sizes.

Syntax

function(<Size> paperSize)

Examples

The following example demonstrates RequestPaperSizeCallback in a practical document-editing workflow. Callback function for requesting an array of paper sizes.

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

function requestPaperSizeCallback(paperSize) {
    console.log("paper size:", paperSize);
}

TXTextControl.getSupportedPaperSizes(requestPaperSizeCallback, onTxError);