# Interface: RectifySettings

[Mobile Document Scanner API Reference](../index.md) / RectifySettings

# Interface: RectifySettings

Defined in: [src/settings/settings.ts:256](https://github.com/Dynamsoft/document-scanner-javascript/blob/main/src/settings/settings.ts#L256)

The settings of the rectify phase.

## Properties

### container?

> `optional` **container?**: `string` \| `HTMLElement`

Defined in: [src/settings/settings.ts:263](https://github.com/Dynamsoft/document-scanner-javascript/blob/main/src/settings/settings.ts#L263)

The element that the rectify screen shows in, or a selector for one. Without it,
the rectify screen shows in the element of the screen that opens it. After a
capture, this is the element of the capture screen. From the edit screen, it is
the element of the edit screen.

***

### layout?

> `optional` **layout?**: [`RectifyLayout`](RectifyLayout.md)

Defined in: [src/settings/settings.ts:275](https://github.com/Dynamsoft/document-scanner-javascript/blob/main/src/settings/settings.ts#L275)

New content for the header or the footer of the rectify screen, in both modes.
The areas work as [phases.capture.layout](CaptureSettings.md#layout) does,
with the buttons of [RectifyScreenButton](../type-aliases/RectifyScreenButton.md). The published file
`dist/defaults/rectify-layout.xml` holds the built-in template of each area, to
copy and change.

***

### modes?

> `optional` **modes?**: [`RectifyModes`](RectifyModes.md)

Defined in: [src/settings/settings.ts:266](https://github.com/Dynamsoft/document-scanner-javascript/blob/main/src/settings/settings.ts#L266)

The two ways to reach the screen. Set one to `false` to remove it.
