PageSize Object
Description
Represents the page's size of a TX Text Control document or document section. The measure depends on the page's unit.
Syntax
PageSizeExamples
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
| Method | Description |
|---|---|
| getHeight | Gets the page height of a document or document section. |
| getWidth | Gets the page width of a document or document section. |
| setHeight | Sets the page height of a document or document section. |
| setWidth | Sets the page width of a document or document section. |
Enumerations
| Enumeration | Description |
|---|---|
| Attribute | Determines a certain page size attribute. |