Topics   All   Mac OS X (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server (Not)   Client   Old   Guides   Examples
New in version: 6.2   6.3   6.4   6.5   7.0   7.1   7.2   7.3   7.4   7.5    Statistic  

OCR.WriteToPDF

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 )

Parameters

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

Result

Returns OK or error message.

Description

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.

Examples

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


OCR.SetVariable   -   PDFKit.AddEmptyPage

Feedback: Report problem or ask question.




Links
MBS Xojo Plugins