Components All New MacOS Windows Linux iOS
Examples Mac & Win Server Client Guides Statistic FMM Blog Deprecated Old

OCR.RenderPDF

Prozesses pages to render a PDF with embedded recognized text.

Component Version macOS Windows Linux Server iOS SDK
OCR 16.1 ✅ Yes ✅ Yes ✅ Yes ✅ Yes ✅ Yes
MBS( "OCR.RenderPDF"; OutputPath { ; Title; TextOnly } )   More

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"; $path; "eng") ]
Set Variable [ $r ; Value: MBS( "OCR.SetImageFile"; "/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") ]

See also

Release notes

Blog Entries

This function checks for a license.

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


OCR.Recognize - OCR.SetImage