OCR.GetHOCRText
---------------

Make a HTML-formatted string with hOCR markup from the internal data structures.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [OCR](component_OCR.md) | [2.9](newinversion29.md) | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |

MBS( "OCR.GetHOCRText" { ; Page } ) 

**MBS**( **"OCR.GetHOCRText";** /\* Make a HTML-formatted string with hOCR markup from the internal data structures. \*/  
**$Page**) /\* Optional; The page index you want to use in html. Default value is 0.e.g. 0 \*/ 

### Parameters

| Parameter | Description | Example | Flags |
|---|---|---|---|
| Page | The page index you want to use in html. Default value is 0. | 0 | Optional |

### Result

Returns the text.

### Description

Make a HTML-formatted string with hOCR markup from the internal data structures.  
Page is 0-based but will appear in the output as 1-based.  
### Examples

Queries text of first page:

 $text = MBS ( "OCR.GetHOCRText"; 0 )  
### See also

- [OCR.GetBoxText](OCRGetBoxText.md)

This function is free to use.

Created 18th August 2014 , last changed 18th August 2014

  
[OCR.GetBoxText](OCRGetBoxText.md) - [OCR.GetPageSegMode](OCRGetPageSegMode.md)

[HTML Version](OCRGetHOCRText.shtml)