# Javascript: TXTextControl.pageSize Property

> The width and height of the pages for the current document. The measure depends on the page unit. The default measure is 1/100th inch.

- **Product:** DS Server
- **Section:** Reference
- **Kind:** Property
- **Introduced:** 28.0
- **Path:** DS Server > Reference > JavaScript API > Javascript: TXTextControl.pageSize Property
- **161 words**
- **Web URL:** https://docs.textcontrol.com/ds-server/reference/javascript/txtextcontrol/pagesize-property/
- **LLMs URL:** https://docs.textcontrol.com/ds-server/reference/javascript/txtextcontrol/pagesize-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/ds-server/reference/javascript/txtextcontrol/pagesize-property/llms-full.txt

---

### Description

The width and height of the pages for the current document. The measure depends on the page unit. The default measure is 1/100th inch.

### Syntax

```javascript
<PageSize> TXTextControl.pageSize
```

### Examples

The following example demonstrates `TXTextControl.pageSize` in a practical document-editing workflow. The width and height of the pages for the current document. The measure depends on the page unit. The default measure is 1/100th inch.

```javascript
const pageSize = tXTextControl.pageSize;
console.log("page size:", pageSize);
```

### Limitations

Read Only.

---

## Nearby

- **Previous:** [Javascript: TXTextControl.pages Property](https://docs.textcontrol.com/ds-server/reference/javascript/txtextcontrol/pages-property/llms-full.txt)
- **Next:** [Javascript: TXTextControl.paragraphFormat Property](https://docs.textcontrol.com/ds-server/reference/javascript/txtextcontrol/paragraphformat-property/llms-full.txt)
