OCR.RenderPDF
-------------

Prozesses pages to render a PDF with embedded recognized text.

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

MBS( "OCR.RenderPDF"; OutputPath { ; Title; TextOnly } ) 

**MBS**( **"OCR.RenderPDF";** /\* Prozesses pages to render a PDF with embedded recognized text. \*/  
**$OutputPath**; /\* The file path for the output PDF file.e.g. "/Users/cs/test.pdf" \*/   
**$Title**; /\* Optional; The new title of the document.e.g. "OCR Output" \*/   
**$TextOnly**) /\* Optional; Output only the text without the image.  
Pass 1 for text only or 0 for image. Default is 0.e.g. 0 \*/ 

### Parameters

| Parameter | Description | Example | Flags |
|---|---|---|---|
| OutputPath | The file path for the output PDF file. | "/Users/cs/test.pdf" |  |
| Title | The new title of the document. | "OCR Output" | Optional |
| TextOnly | Output only the text without the image.   Pass 1 for text only or 0 for image. Default is 0. | 0 | Optional |

### Result

Returns OK or error.

### Description

Prozesses pages to render a PDF with embedded recognized text.  
### Examples

Run OCR on a picture and make a PDF:

 Set Variable \[ $r ; Value: MBS ( "[OCR.Initialize](OCRInitialize.md)"; $path ; "eng") \]  
Set Variable \[ $r ; Value: MBS ( "[OCR.SetImageFile](OCRSetImageFile.md)"; "/Users/cs/Temp/eurotext.tif") \]  
Set Variable \[ $r ; Value: MBS ( "OCR.RenderPDF"; "/Users/cs/Temp/eurotext.pdf"; "Hello") \]  
Set Variable \[ $r ; Value: MBS ( "[OCR.Cleanup](OCRCleanup.md)") \]  
### See also

- [OCR.Cleanup](OCRCleanup.md)
- [OCR.Initialize](OCRInitialize.md)
- [OCR.SetImage](OCRSetImage.md)
- [OCR.SetImageFile](OCRSetImageFile.md)

### Release notes

- **Version 16.1**
    - Added [OCR.RenderPDF](https://www.mbsplugins.eu/OCRRenderPDF.shtml) function.

### Blog Entries

- [MBS FileMaker Plugin 16.1 News](https://www.mbsplugins.de/archive/2026-03-31/MBS_FileMaker_Plugin_161_News/monkeybreadsoftware_blog_filemaker)
- [Neues MBS Plugin 16.1 für Claris FileMaker](https://www.mbsplugins.de/archive/2026-03-17/Neues_MBS_Plugin_161_für_Clar/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Plugin 16.1 for Claris FileMaker - More than 7800 functions in one plugin](https://www.mbsplugins.de/archive/2026-03-17/MBS_FileMaker_Plugin_161_for_C/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Plugin, version 16.1pr2](https://www.mbsplugins.de/archive/2026-02-06/MBS_FileMaker_Plugin_version_1/monkeybreadsoftware_blog_filemaker)

This function checks for a license.

Created 1st February 2026 , last changed 2nd February 2026

  
[OCR.Recognize](OCRRecognize.md) - [OCR.SetImage](OCRSetImage.md)

[HTML Version](OCRRenderPDF.shtml)