# OCRPageResult

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.OCRPageResult/

OCR PageResult is effectively an array of OCR block results.

- **Full name:** `MFiles.OCRPageResult`
- **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-number"></a>`number` | `uint32` | 1 | Page number of this page. |
| <a id="f-blocks"></a>`blocks` | repeated [`OCRBlockResult`](https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/MFiles.OCRBlockResult/index.md) | 2 | An array of OCR block results. |

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

## Used by methods

- [IRPCScanningAndOCR.OCROperation_End](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCScanningAndOCR/OCROperation_End/index.md): Ends an OCR job started with OCROperation_Begin and replaces the document's file with the resulting PDF.
- [IRPCScanningAndOCR.OCROperation_EndWithDownload](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCScanningAndOCR/OCROperation_EndWithDownload/index.md): Ends an OCR job and returns its results: the recognized texts and a download of the PDF.

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

## Used in fields

- [`OCROperation_EndResponse.page_results`](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCScanningAndOCR/OCROperation_End/index.md#response): The recognized areas and their texts, per page. Empty if the type did not recognize areas.
- [`OCROperation_EndWithDownloadResponse.page_results`](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCScanningAndOCR/OCROperation_EndWithDownload/index.md#response): The recognized areas and their texts, per page. Empty for the types that only produce a PDF.
