Topics   All   Mac OS X (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Guides   Examples
New in version: 7.4   7.5   8.0   8.1   8.2   8.3   8.4   8.5   9.0   9.1    Statistic  


Writes text on the PDF.

Component Version macOS Windows Server FileMaker Cloud FileMaker iOS SDK
OCR 3.1 Yes Yes Yes Yes Yes
MBS( "OCR.WriteToPDF"; PosX; PosY; Width; Height )   More


Parameter Description Example value
PosX X-Coordinate of image. $x
PosY Y-Coordinate of image. $y
Width Width of the image. $w
Height Height of the image. $h


Returns OK or error message.


Writes text on the PDF.
This function is good to overlay an OCRed image with text, so you can copy/search the text.
Please set a default font before calling this function.

Be aware that if the font loaded in pdf page is wider than scanned font, the words can overlap.
Plugin version 7.5 or newer will reduce font size if needed to fit word length to fix this.


Insert image and write text over it:

MBS("DynaPDF.InsertImage"; OCR::Image; $x; $y; $w; $h)
MBS( "OCR.WriteToPDF"; $x; $y; $w; $h)

See also

Example Databases

Blog Entries

Created 18th August 2014, last changed 21st November 2017

OCR.SetVariable   -   PDFKit.AddEmptyPage

Feedback: Report problem or ask question.

MBS Xojo Plugins