OnOCRPage
OCR, events
Description
Supplies one PNG page to an application-selected OCR provider and receives versioned OCR JSON
Syntax
Delphi
Property TPDFlib.OnOCRPage: TPDFlibOCRProviderEvent
Read FOnOCRPage
Write FOnOCRPage;Remarks
Set ResultJSON to the schema accepted by ApplyOCRTextLayer
Set Cancel to true to stop the page or document operation without applying the current result
The callback executes synchronously, so the image bytes remain valid until it returns