# DocumentPermissions Object

> The type of the documentPermissions property. The DocumentPermissions object provides settings determining how the document can be edited, when the EditMode is changed from Edit to ReadAndSelect.

- **Product:** TX Text Control .NET Server
- **Section:** Reference
- **Kind:** Object
- **Introduced:** 25.0
- **Path:** TX Text Control .NET Server > Reference > JavaScript API > DocumentPermissions Object
- **683 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/documentpermissions/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/documentpermissions/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/documentpermissions/llms-full.txt

---

### Description

The type of the [documentPermissions property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/txtextcontrol/documentpermissions-property/llms-full.txt). The DocumentPermissions object provides settings determining how the document can be edited, when the EditMode is changed from Edit to ReadAndSelect.

### Syntax

```javascript
{
   readOnly: <boolean>,
   allowCopy: <boolean>,
   allowFormatting: <boolean>,
   allowFormattingStyles: <boolean>,
   allowPrinting: <boolean>,
   allowEditingFormFields: <boolean>
}
```

### Examples

The following example demonstrates `DocumentPermissions` in a practical document-editing workflow. The type of the documentPermissions property. The DocumentPermissions object provides settings determining how the document can be edited, when the EditMode is changed from Edit to ReadAndSelect.

```javascript
function inspectDocumentPermissions(documentPermissions) {
    console.log("read only:", documentPermissions.readOnly);
    console.log("allow copy:", documentPermissions.allowCopy);
    console.log("allow formatting:", documentPermissions.allowFormatting);
    console.log("allow formatting styles:", documentPermissions.allowFormattingStyles);
}
```

---

## In This Section

- [Javascript: DocumentPermissions.allowCopy Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/documentpermissions/allowcopy-property/llms-full.txt): Specifies whether document content can be copied to the clipboard.
- [Javascript: DocumentPermissions.allowEditingFormFields Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/documentpermissions/alloweditingformfields-property/llms-full.txt): Gets or sets a value specifying whether form fields can be filled in.
- [Javascript: DocumentPermissions.allowFormatting Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/documentpermissions/allowformatting-property/llms-full.txt): Gets or sets a value specifying whether the document can be formatted.
- [Javascript: DocumentPermissions.allowFormattingStyles Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/documentpermissions/allowformattingstyles-property/llms-full.txt): Gets or sets a value specifying whether formatting styles can be used to format the document.
- [Javascript: DocumentPermissions.allowPrinting Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/documentpermissions/allowprinting-property/llms-full.txt): Gets or sets a value specifying whether the document can be printed.
- [Javascript: DocumentPermissions.readOnly Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/documentpermissions/readonly-property/llms-full.txt): Gets or sets a value specifying whether the document is read only.

---

## Nearby

- **Previous:** [Javascript: DocumentLoadedEventArgs.fileName Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/documentloadedeventargs/filename-property/llms-full.txt)
- **Next:** [Javascript: DocumentPermissions.allowCopy Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/documentpermissions/allowcopy-property/llms-full.txt)
