GetLastUnicodeReplacementDiagnostics

提取、Unicode、内容编辑

描述

以 JSON 返回最近一次内容流 Unicode 替换的结果,且不清除 LastErrorCode

语法

Delphi

Function TPDFlib.GetLastUnicodeReplacementDiagnostics: WideString;

DLL

Function DLGetLastUnicodeReplacementDiagnostics(InstanceID: Integer): PWideChar; Stdcall;
Function DLGetLastUnicodeReplacementDiagnosticsA(InstanceID: Integer): PAnsiChar; Stdcall;

ActiveX

Function PDFlib::GetLastUnicodeReplacementDiagnostics: WideString;

结果字段

初始状态为 not_checked;completed 包含 replacedHits,error 包含代码,unsupported 包含描述被拒绝操作的代码或消息

{"status":"completed","replacedHits":2}
{"status":"unsupported","message":"Replacement font mapping is incomplete or unsupported"}

completed 且 replacedHits 为 0 表示未找到匹配;unsupported 表示所选页面文本未被替换

DLL A getter 返回 UTF-8;返回的 DLL 字符串指针在该实例下一次返回字符串的调用之前保持有效

另请参阅

SearchAndReplaceTextInContent、SearchAndReplaceTextInContentEx、GetLastUnicodeReplacementDiagnostics、SearchText