Topics
All
MacOS
(Only)
Windows
(Only)
Linux
(Only, Not)
iOS
(Only, Not)
Components
Crossplatform Mac & Win
Server
Client
Old
Deprecated
Guides
Examples
Videos
New in version:
9.3
9.4
9.5
10.0
10.1
10.2
10.3
10.4
10.5
10.6
Statistic
FMM
Blog
OCR.WriteToPDF
Writes text on the PDF.
| Component | Version | macOS | Windows | Linux | Server | FileMaker iOS SDK |
| OCR | 3.1 | Yes | Yes | Yes | Yes | Yes |
MBS( "OCR.WriteToPDF"; PosX; PosY; Width; Height ) More
Parameters
| Parameter | Description | Example |
|---|---|---|
| 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
Blog Entries
- MBS FileMaker Plugin, version 7.5pr9
- MBS FileMaker Plugin, version 6.5pr1
- MBS Filemaker Plugin, version 3.1pr11
Release notes
- Version 7.5
- Improved OCR.WriteToPDF to reduce font size if needed to make sure words are not too wide.
Created 18th August 2014, last changed 21st November 2017
OCR.SetVariable - PDFKit.AddEmptyPage
Feedback: Report problem or ask question.
Links
MBS FileMaker Plugins