LastOCRErrorA

OCR、错误处理

描述

LastOCRError 的 ANSI 变体

字符串参数按 ANSI 文本接受,其余行为与宽字符串入口点完全相同

语法

Delphi

Function TPDFlib.LastOCRError: WideString;

ActiveX

Function PDFlib::LastOCRError() As String

DLL

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

备注

OCR 操作成功后会清除先前的值

使用 LastErrorCode 获取稳定的数值类别,并使用此函数获取面向日志或用户的诊断信息

另请参阅

ApplyOCRTextLayer、OCRPage、OCRDocument