# Javascript: DocumentPermissions.allowFormatting Property

> Gets or sets a value specifying whether the document can be formatted.

- **Product:** DS Server
- **Section:** Reference
- **Kind:** Property
- **Introduced:** 25.0
- **Path:** DS Server > Reference > JavaScript API > Javascript: DocumentPermissions.allowFormatting Property
- **149 words**
- **Web URL:** https://docs.textcontrol.com/ds-server/reference/javascript/documentpermissions/allowformatting-property/
- **LLMs URL:** https://docs.textcontrol.com/ds-server/reference/javascript/documentpermissions/allowformatting-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/ds-server/reference/javascript/documentpermissions/allowformatting-property/llms-full.txt

---

### Description

Gets or sets a value specifying whether the document can be formatted.

### Syntax

```javascript
<boolean> DocumentPermissions.allowFormatting
```

### Examples

The following example demonstrates `DocumentPermissions.allowFormatting` in a practical document-editing workflow. It gets or sets a value specifying whether the document can be formatted.

```javascript
const allowFormatting = TXTextControl.documentPermissions.allowFormatting;
console.log("allow formatting:", allowFormatting);
```

---

## Nearby

- **Previous:** [Javascript: DocumentPermissions.allowEditingFormFields Property](https://docs.textcontrol.com/ds-server/reference/javascript/documentpermissions/alloweditingformfields-property/llms-full.txt)
- **Next:** [Javascript: DocumentPermissions.allowFormattingStyles Property](https://docs.textcontrol.com/ds-server/reference/javascript/documentpermissions/allowformattingstyles-property/llms-full.txt)
