DS Server

PageSize Object

Object|Introduced in 26.0

Description

Represents the page's size of a TX Text Control document or document section. The measure depends on the page's unit.

Syntax

PageSize

Examples

The following example demonstrates PageSize in a practical document-editing workflow. It represents the page's size of a TX Text Control document or document section. The measure depends on the page's unit.

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
);

Members

Methods

MethodDescription
getHeightGets the page height of a document or document section.
getWidthGets the page width of a document or document section.
setHeightSets the page height of a document or document section.
setWidthSets the page width of a document or document section.

Enumerations

EnumerationDescription
AttributeDetermines a certain page size attribute.