# Javascript: TXTextControl.pageMargins Property

> The margins for the pages of 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.pageMargins Property
- **162 words**
- **Web URL:** https://docs.textcontrol.com/ds-server/reference/javascript/txtextcontrol/pagemargins-property/
- **LLMs URL:** https://docs.textcontrol.com/ds-server/reference/javascript/txtextcontrol/pagemargins-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/ds-server/reference/javascript/txtextcontrol/pagemargins-property/llms-full.txt

---

### Description

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

### Syntax

```javascript
<PageMargins> TXTextControl.pageMargins
```

### Examples

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

```javascript
const pageMargins = tXTextControl.pageMargins;
console.log("page margins:", pageMargins);
```

### Limitations

Read Only.

---

## Nearby

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