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