# OCROperationType

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) > [Enums](https://developer.m-files.com/APIs/gRPC-API/Reference/Enums/index.md)

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

OCR Operation type enumeration.

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

<a id="values"></a>

## Values

| Name | Number | Description |
|---|---|---|
| <a id="v-OCROPERATION_TYPE_NONE"></a>`OCROPERATION_TYPE_NONE` | 0 | Unknown operation. |
| <a id="v-OCROPERATION_TYPE_CONVERT_TO_SEARCHABLE_PDF"></a>`OCROPERATION_TYPE_CONVERT_TO_SEARCHABLE_PDF` | 1 | Output a searchable PDF. |
| <a id="v-OCROPERATION_TYPE_RECOGNIZE_SPECIFIC_BLOCKS"></a>`OCROPERATION_TYPE_RECOGNIZE_SPECIFIC_BLOCKS` | 2 | Recognize all the blocks specified in the request. |
| <a id="v-OCROPERATION_TYPE_RECOGNIZE_ANY_BLOCKS"></a>`OCROPERATION_TYPE_RECOGNIZE_ANY_BLOCKS` | 3 | Recognize any blocks found from the document. |
| <a id="v-OCROPERATION_TYPE_CONVERT_TO_SEARCHABLE_PDF_AND_RECOGNIZE_SPECIFIC_BLOCKS"></a>`OCROPERATION_TYPE_CONVERT_TO_SEARCHABLE_PDF_AND_RECOGNIZE_SPECIFIC_BLOCKS` | 4 | Output a searchable PDF and recognize all the blocks specified in the request.. |
| <a id="v-OCROPERATION_TYPE_CONVERT_TO_SEARCHABLE_PDF_AND_RECOGNIZE_ANY_BLOCKS"></a>`OCROPERATION_TYPE_CONVERT_TO_SEARCHABLE_PDF_AND_RECOGNIZE_ANY_BLOCKS` | 5 | Output a searchable PDF and recognize any blocks found from the document. |
| <a id="v-OCROPERATION_TYPE_CONVERT_TO_SEARCHABLE_ARCHIVE_PDF"></a>`OCROPERATION_TYPE_CONVERT_TO_SEARCHABLE_ARCHIVE_PDF` | 6 | Output a searchable PDF/A-1b. |
| <a id="v-OCROPERATION_TYPE_CONVERT_TO_SEARCHABLE_ARCHIVE_PDF_AND_RECOGNIZE_SPECIFIC_BLOCKS"></a>`OCROPERATION_TYPE_CONVERT_TO_SEARCHABLE_ARCHIVE_PDF_AND_RECOGNIZE_SPECIFIC_BLOCKS` | 7 | Output a searchable PDF/A-1b and recognize all the blocks specified in the request.. |
| <a id="v-OCROPERATION_TYPE_CONVERT_TO_SEARCHABLE_ARCHIVE_PDF_AND_RECOGNIZE_ANY_BLOCKS"></a>`OCROPERATION_TYPE_CONVERT_TO_SEARCHABLE_ARCHIVE_PDF_AND_RECOGNIZE_ANY_BLOCKS` | 8 |   |

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

## Used by methods

- [IRPCScanningAndOCR.OCROperation_Begin](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCScanningAndOCR/OCROperation_Begin/index.md): Starts an OCR job on a file of a document that the caller has checked out.
- [IRPCScanningAndOCR.OCROperation_BeginAfterUpload](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCScanningAndOCR/OCROperation_BeginAfterUpload/index.md): Starts an OCR job on a file that the caller uploaded with UploadTempFile.
- [IRPCScanningAndOCR.OCRUploadedFile](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCScanningAndOCR/OCRUploadedFile/index.md): Starts an OCR job that converts the file of a stateless upload to a searchable PDF.

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

## Used in fields

- [`OCROperation_BeginAfterUploadRequest.type`](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCScanningAndOCR/OCROperation_BeginAfterUpload/index.md#request): What to produce. See the service overview.
- [`OCROperation_BeginRequest.type`](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCScanningAndOCR/OCROperation_Begin/index.md#request): What to produce. See the service overview.
- [`OCRUploadedFileRequest.type`](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCScanningAndOCR/OCRUploadedFile/index.md#request): `OCROPERATION_TYPE_CONVERT_TO_SEARCHABLE_PDF` or `OCROPERATION_TYPE_CONVERT_TO_SEARCHABLE_ARCHIVE_PDF`; other types fail.
