GetOCRDocumentReportJSON

OCR and text recognition

Description

Return the structured per-page JSON report from the most recent OCRDocument or OCRDocumentEx batch

Syntax

Delphi

Function TPDFlib.GetOCRDocumentReportJSON: WideString;

ActiveX

Function PDFlib::GetOCRDocumentReportJSON() As String

DLL

const wchar_t* DLGetOCRDocumentReportJSON(int InstanceID);
const char* DLGetOCRDocumentReportJSONA(int InstanceID);

Return values

Returns a JSON object summarising the most recent document OCR run, including overall batch status, page outcomes, recognised word counts, and failure reasons.

Remarks

Populated by OCRDocument and OCRDocumentEx in page-request order.

Use GetOCRRetryPageRange to obtain a compact page-range string covering any failed or skipped pages from the same run.

ActiveX exposes this method on IPDFlibrary24; obtain it with CoPDFlibrary.CreateEditionTools24 or query the default interface of PDFlibAX 4.74 or later

See also

OCRDocumentEx, GetOCRRetryPageRange, GetOCRReadingOrderJSON, GetOCRDiagnosticsJSON