# ONLYOFFICE Docs 7.1 for developers: API updates

**URL:** https://community.onlyoffice.com/t/onlyoffice-docs-7-1-for-developers-api-updates/1868
**Category:** News
**Created:** [20 May 2022 07:41 UTC](https://community.onlyoffice.com/t/onlyoffice-docs-7-1-for-developers-api-updates/1868 "2022-05-20T07:41:45Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![ONLYOFFICE\_team](https://community.onlyoffice.com/user_avatar/community.onlyoffice.com/onlyoffice_team/32/431_2.png) [@ONLYOFFICE\_team](https://community.onlyoffice.com/u/ONLYOFFICE_team)
#### Post date: [20 May 2022 07:41 UTC](https://community.onlyoffice.com/t/onlyoffice-docs-7-1-for-developers-api-updates/1868/1 "2022-05-20T07:41:45Z")

</div>

Originally published at: [ONLYOFFICE Docs 7.1 for developers: API updates | ONLYOFFICE Blog](https://www.onlyoffice.com/blog/2022/05/onlyoffice-docs-7-1-for-developers-api-updates/)

Along with the release of the new features, we updated API for the editors, plugins, and Document Builder. Check the details below.

![ONLYOFFICE Docs 7.1 for developers: API updates](https://www.onlyoffice.com/blog/wp-content/uploads/2022/05/ONLYOFFICE-API-7.1.jpg)

## Adjusting document saving for WOPI operations

The new request headers are available for the [PutFile](https://api.onlyoffice.com/editors/wopi/restapi/putfile) to distinguish between three types of file saving:

- X-LOOL-WOPI-IsModifiedByUser indicates whether a user has modified the document before saving, or if they just pressed the Save button without any modification.
- X-LOOL-WOPI-IsAutosave indicates whether the PutFile is triggered by autosave or any user operation such as hitting the Save button or menu entry.
- X-LOOL-WOPI-IsExitSave indicates whether autosave will be triggered when the document gets cleaned up from memory, e.g. when all users disconnect, or not.

## Updated conversion and new formats

You can now define the document layout which specifies parameters for printing forms as PDF documents or images. [Learn more](https://api.onlyoffice.com/editors/conversionapi#documentLayout)

Another parameter allows defining the document renderer when converting a file from PDF, XPS, and OXPS. [Learn more](https://api.onlyoffice.com/editors/conversionapi#documentRenderer)

Besides, we added new conversion options:

- from [PDF](https://api.onlyoffice.com/editors/conversionapi#text-matrix) to DOCX,
- from [XPS and OXPS](https://api.onlyoffice.com/editors/conversionapi#text-matrix) to DOCX,
- from [XLSB](https://api.onlyoffice.com/editors/conversionapi#spreadsheet-matrix) format (along with opening of [XLSB](https://api.onlyoffice.com/editors/config/#documentType) files).

## Defining user groups for info display

With the document.permissions.userInfoGroups [parameter](https://api.onlyoffice.com/editors/config/document/permissions#userInfoGroups), you are able to specify the groups of users whose information is shown in the editors, including:

- user names in the list of the currently editing users in the header,
- user cursors and tooltips with their names when typing text,
- user names when locking objects in the strict co-editing mode.

```
"permissions": {
  ...
  "userInfoGroups": ["Group1", ""]
  ... },
```

Here, the [“Group1”, “”] means that the information about users from the Group 1 and users who don’t belong to any group is displayed.

## Spellchecker settings

Starting from version 7.1, we added the editorConfig.customization.features [parameter section](https://api.onlyoffice.com/editors/config/editor/customization#features), which allows setting up the parameters that users can disable or customize if possible, including spellchecker.

The editorConfig.customization.spellcheck field is now deprecated and you should use the editorConfig.customization.features.spellcheck [field](https://api.onlyoffice.com/editors/config/editor/customization#features) instead to define if the spellchecker is automatically switched on or off when the document or presentation editor is loaded.

```
"features": {
  "spellcheck": {
  "mode": true,
  }
```

## Other changes

- The parameter list in the initialization config [signature](https://api.onlyoffice.com/editors/signature/browser#open) is now strictly regulated.
- The editorConfig.customization.chat parameter is deprecated — use the document.permissions.chat [parameter](https://api.onlyoffice.com/editors/config/document/permissions#chat) instead.
- The services.CoAuthoring.token.inbox.inBody and services.CoAuthoring.token.outbox.inBody parameters for enabling [token in body](https://api.onlyoffice.com/editors/signature/body) are deprecated.

Get the latest version of ONLYOFFICE Docs Developer Edition:

[DOWNLOAD NOW](https://www.onlyoffice.com/download-docs.aspx?utm_source=blog&utm_medium=social&utm_campaign=docs_71_devs#docs-developer)

## API updates for plugins

- Access to the _window_ and _documen__t_ objects as well as the _alert_ function is restricted from the plugin command code and macros. [Learn more](https://api.onlyoffice.com/plugin/code)
- New methods for plugins with OLE object: [GetAllOleObjects](https://api.onlyoffice.com/plugin/executemethod/getalloleobjects), [RemoveOleObject](https://api.onlyoffice.com/plugin/executemethod/removeoleobject), [RemoveOleObjects](https://api.onlyoffice.com/plugin/executemethod/removeoleobjects), and [SelectOleObject](https://api.onlyoffice.com/plugin/executemethod/selectoleobject).

[Learn how to create plugins](https://youtu.be/ENrgRKnXf5I?t=962)

## API updates for Document Builder

The [DocBuilder API](https://api.onlyoffice.com/docbuilder/basic) was considerably enhanced. Along with generating DOCX, XLSX, PPTX, and PDF files, you can now work with [fillable forms](https://www.onlyoffice.com/form-creator.aspx?utm_source=blog&utm_medium=social&utm_campaign=docs_71_devs), e.g.:

```
builder.CreateFile("docxf");
ONLYOFFICE Document Builder
var oDocument = Api.GetDocument();  
text document contents
var oTextForm = Api.CreateTextForm();
var oParagraph = oDocument.GetElement(0);
oParagraph.AddElement(oTextForm); 
oTextForm.SetText("John Smith"); 
builder.SaveFile("docxf", "example.docxf");
format with the 'example.docxf' name
builder.CloseFile();   
ONLYOFFICE Document Builder
```

In addition to the new form methods, we also added [more methods](https://api.onlyoffice.com/docbuilder/changelog) for working with:

- cross-references,
- reviewing,
- table background,
- spreadsheet areas and ranges,
- presentations (including layout, placeholders, themes, drawing, slides, etc.).

[GET DOC BUILDER](https://www.onlyoffice.com/download.aspx?utm_source=blog&utm_medium=social&utm_campaign=docs_71_devs#builder)

### Useful links

[New features in ONLYOFFICE Docs v7.1](https://www.onlyoffice.com/blog/2022/05/discover-onlyoffice-docs-v7-1/?utm_source=blog&utm_medium=social&utm_campaign=docs_71_devs)

[ONLYOFFICE for developers](https://www.onlyoffice.com/for-developers.aspx?utm_source=blog&utm_medium=social&utm_campaign=docs_71_devs)

[ONLYOFFICE Document Builder](https://www.onlyoffice.com/document-builder.aspx?utm_source=blog&utm_medium=social&utm_campaign=docs_71_devs)

[API documentation](https://api.onlyoffice.com/)

[API changelog](https://api.onlyoffice.com/editors/changelog)

[DocBuilder changelog](https://api.onlyoffice.com/docbuilder/changelog)

New integration apps: for [WordPress](https://www.onlyoffice.com/blog/2022/05/onlyoffice-official-connector-for-wordpress-released/?utm_source=blog&utm_medium=social&utm_campaign=docs_71_devs) and [Strapi](https://www.onlyoffice.com/blog/2022/05/strapi-connector-for-onlyoffice/?utm_source=blog&utm_medium=social&utm_campaign=docs_71_devs)
