# Interface: ResourceSettings

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

# Interface: ResourceSettings

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

The locations of the runtime files of the engines. By default, the engines fetch
them from a CDN.

## Properties

### captureVision?

> `optional` **captureVision?**: `EngineResourcePaths`

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

The resource paths of Capture Vision, in the shape of its own
`engineResourcePaths`. The document scanner passes them to the engine as given.

#### Default Value

`{ rootDirectory: "https://cdn.jsdelivr.net/npm/" }`

***

### documentViewer?

> `optional` **documentViewer?**: `string`

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

The directory of the runtime files of Document Viewer. The default directory is
under the `rootDirectory` of [captureVision](#capturevision),
for the version of Document Viewer that the page loads.

#### Default Value

`<rootDirectory>/dynamsoft-document-viewer@<version>/dist/engine`
