Click or drag to resize

APIOCRImageToPDF Method

Prints the specified image to a searchable PDF file using Optical Character Recognition.

Namespace:  AppRobotic
Assembly:  AppRobotic (in AppRobotic.dll) Version: 15.21.3.21 (15.21.03.21)
Syntax
C#
public string OCRImageToPDF(
	Object ImageFilePath,
	Object PDFOutputFilePath,
	Object Language,
	Object FastOrBest
)

Parameters

ImageFilePath
Type: SystemObject
File path to the image, in quotes, including the extension (.png/.bmp/.tiff/.tif).
PDFOutputFilePath
Type: SystemObject
File path, in quotes, for the PDF to be created.
Language
Type: SystemObject
Language in the image, in quotes. English or eng. Spanish or spa. Multiple languages supported, i.e. eng+spa and over 100 languages can be installed. Download additional languages with AppRobotic OCR Viewer and specify the 639-2/T language code directly.
FastOrBest
Type: SystemObject
Fast or Best, in quotes. Fast does OCR quicker. Best is usually slower but higher accuracy.

Return Value

Type: String
Returns string containing 'success' or error message.
See Also