# ScanningAndOCROptions

Location: [gRPC API](https://developer.m-files.com/APIs/gRPC-API/index.md) > [Reference](https://developer.m-files.com/APIs/gRPC-API/Reference/index.md) > [Messages](https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/index.md)

HTML version: https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/MFiles.ScanningAndOCROptions/

Struct for scanning and OCR options.

- **Full name:** `MFiles.ScanningAndOCROptions`
- **Proto file:** [`mfiles/structs.proto`](https://developer.m-files.com/APIs/gRPC-API/downloads/proto/mfiles/structs.proto)

<a id="fields"></a>

## Fields

| Field | Type | Number | Description |
|---|---|---|---|
| <a id="f-allow_scanning_from_clients"></a>`allow_scanning_from_clients` | `bool` | 1 | True if the whole client-side scanning feature is on. |
| <a id="f-allow_client_ocr"></a>`allow_client_ocr` | `bool` | 2 | True if the OCR feature is on for the client-side. |
| <a id="f-allow_server_ocr"></a>`allow_server_ocr` | `bool` | 3 | True if the OCR feature is on for the server-side. |
| <a id="f-allowed_file_extensions"></a>`allowed_file_extensions` | repeated `string` | 4 | An array of file extensions (not including dot) for which scanning and OCR generation is allowed. |
| <a id="f-ocr_setup_error_code"></a>`ocr_setup_error_code` | `uint32` | 5 | OCR setup error code. |
| <a id="f-ocr_options"></a>`ocr_options` | [`OCROptions`](https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/MFiles.OCROptions/index.md) | 6 | Default options for OCR. |

<a id="used-by-methods"></a>

## Used by methods

- [IRPCScanningAndOCR.GetScanningAndOCROptions](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCScanningAndOCR/GetScanningAndOCROptions/index.md): Gets whether scanning and client- and server-side OCR are enabled for the vault, and for which file types.

<a id="used-in-fields"></a>

## Used in fields

- [`GetScanningAndOCROptionsResponse.putf8szscanocrops`](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCScanningAndOCR/GetScanningAndOCROptions/index.md#response): The scanning and OCR options of the vault. See [ScanningAndOCROptions](https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/MFiles.ScanningAndOCROptions/index.md).
