# DocumentSettings Object

> The DocumentSettings class provides properties which inform about general document settings, such as author and title, contained in the document the user is currently working on (see TXTextControl.documentSettings).

- **Product:** DS Server
- **Section:** Reference
- **Kind:** Object
- **Introduced:** 29.0
- **Path:** DS Server > Reference > JavaScript API > DocumentSettings Object
- **1103 words**
- **Web URL:** https://docs.textcontrol.com/ds-server/reference/javascript/documentsettings/
- **LLMs URL:** https://docs.textcontrol.com/ds-server/reference/javascript/documentsettings/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/ds-server/reference/javascript/documentsettings/llms-full.txt

---

### Description

The DocumentSettings class provides properties which inform about general document settings, such as author and title, contained in the document the user is currently working on (see [TXTextControl.documentSettings](https://docs.textcontrol.com/ds-server/reference/javascript/txtextcontrol/documentsettings-property/llms-full.txt)).

### Syntax

```javascript
DocumentSettings
```

### Examples

The following example demonstrates `DocumentSettings` in a practical document-editing workflow. The DocumentSettings class provides properties which inform about general document settings, such as author and title, contained in the document the user is currently working on (see TXTextControl.documentSettings).

```javascript
function onTxError(error) {
    console.error("TX Text Control error:", error.msg);
    error.handled = true;
}

TXTextControl.documentSettings.getAuthor(
    function(result) {
        console.log("get author result:", result);
    },
    onTxError
);
```

---

## In This Section

- [Javascript: DocumentSettings.embeddedFiles Property](https://docs.textcontrol.com/ds-server/reference/javascript/documentsettings/embeddedfiles-property/llms-full.txt): Gets a collection of all files embedded in the document.
- [Javascript: DocumentSettings.getAuthor Method](https://docs.textcontrol.com/ds-server/reference/javascript/documentsettings/getauthor-method/llms-full.txt): Gets the author of the current document.
- [Javascript: DocumentSettings.getCreationDate Method](https://docs.textcontrol.com/ds-server/reference/javascript/documentsettings/getcreationdate-method/llms-full.txt): Gets the document's creation date as a unix timestamp.
- [Javascript: DocumentSettings.getCreatorApplication Method](https://docs.textcontrol.com/ds-server/reference/javascript/documentsettings/getcreatorapplication-method/llms-full.txt): Gets the application, which has created the current document.
- [Javascript: DocumentSettings.getDocumentBasePath Method](https://docs.textcontrol.com/ds-server/reference/javascript/documentsettings/getdocumentbasepath-method/llms-full.txt): Gets a file path that is used to search for resources like images or hypertext links.
- [Javascript: DocumentSettings.getDocumentKeywords Method](https://docs.textcontrol.com/ds-server/reference/javascript/documentsettings/getdocumentkeywords-method/llms-full.txt): Gets the current document's keywords. The property value is null, if there are no keywords contained in the document.
- [Javascript: DocumentSettings.getDocumentSubject Method](https://docs.textcontrol.com/ds-server/reference/javascript/documentsettings/getdocumentsubject-method/llms-full.txt): Gets the subject string of the current document.
- [Javascript: DocumentSettings.getDocumentTitle Method](https://docs.textcontrol.com/ds-server/reference/javascript/documentsettings/getdocumenttitle-method/llms-full.txt): Gets the title string of the current document.
- [Javascript: DocumentSettings.getUserDefinedDocumentProperties Method](https://docs.textcontrol.com/ds-server/reference/javascript/documentsettings/getuserdefineddocumentproperties-method/llms-full.txt): Gets an object with all user-defined document properties contained in the current document.
- [Javascript: DocumentSettings.setAuthor Method](https://docs.textcontrol.com/ds-server/reference/javascript/documentsettings/setauthor-method/llms-full.txt): Sets the author of the current document.
- [Javascript: DocumentSettings.setCreationDate Method](https://docs.textcontrol.com/ds-server/reference/javascript/documentsettings/setcreationdate-method/llms-full.txt): Sets the document's creation date as a unix timestamp.
- [Javascript: DocumentSettings.setCreatorApplication Method](https://docs.textcontrol.com/ds-server/reference/javascript/documentsettings/setcreatorapplication-method/llms-full.txt): Sets the application, which has created the current document.
- [Javascript: DocumentSettings.setDocumentBasePath Method](https://docs.textcontrol.com/ds-server/reference/javascript/documentsettings/setdocumentbasepath-method/llms-full.txt): Sets a file path that is used to search for resources like images or hypertext links.
- [Javascript: DocumentSettings.setDocumentKeywords Method](https://docs.textcontrol.com/ds-server/reference/javascript/documentsettings/setdocumentkeywords-method/llms-full.txt): Sets the current document's keywords.
- [Javascript: DocumentSettings.setDocumentSubject Method](https://docs.textcontrol.com/ds-server/reference/javascript/documentsettings/setdocumentsubject-method/llms-full.txt): Sets the subject string of the current document.
- [Javascript: DocumentSettings.setDocumentTitle Method](https://docs.textcontrol.com/ds-server/reference/javascript/documentsettings/setdocumenttitle-method/llms-full.txt): Sets the title string of the current document.
- [Javascript: DocumentSettings.setUserDefinedDocumentProperties Method](https://docs.textcontrol.com/ds-server/reference/javascript/documentsettings/setuserdefineddocumentproperties-method/llms-full.txt): Sets an object with all user-defined document properties contained in the current document.

---

## Nearby

- **Previous:** [Javascript: DocumentPermissions.readOnly Property](https://docs.textcontrol.com/ds-server/reference/javascript/documentpermissions/readonly-property/llms-full.txt)
- **Next:** [Javascript: DocumentSettings.embeddedFiles Property](https://docs.textcontrol.com/ds-server/reference/javascript/documentsettings/embeddedfiles-property/llms-full.txt)
