GetLastUnicodeReplacementDiagnostics

抽出、Unicode、コンテンツ編集

説明

直近のコンテンツストリーム Unicode 置換結果を JSON で返します。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"}

replacedHits が 0 の completed は、一致が見つからなかったことを意味します。unsupported は、選択されたページテキストが 1 つも置換されなかったことを意味します

DLL の A 系ゲッターは UTF-8 を返します。返された DLL 文字列ポインターは、そのインスタンスで次に文字列を返す呼び出しが行われるまで有効です

関連項目

SearchAndReplaceTextInContent、SearchAndReplaceTextInContentEx、GetLastUnicodeReplacementDiagnostics、SearchText