LastOCRErrorA

OCR, error handling

Description

ANSI variant of LastOCRError

Accepts string parameters as ANSI text and otherwise behaves identically to the wide-string entry point

Syntax

Delphi

Function TPDFlib.LastOCRError: WideString;

ActiveX

Function PDFlib::LastOCRError() As String

DLL

const wchar_t* DLLastOCRError(int InstanceID);
const char* DLLastOCRErrorA(int InstanceID);

Remarks

A successful OCR operation clears the previous value

Use LastErrorCode for the stable numeric category and this function for diagnostics intended for logs or users

See also

ApplyOCRTextLayer, OCRPage, OCRDocument