ClearTesseractOCR
OCR, configuration
Description
Releases the provider created by ConfigureTesseractOCR on this instance
Syntax
Delphi
Procedure TPDFlib.ClearTesseractOCR;
ActiveX
Function PDFlib::ClearTesseractOCR() As Long
DLL
int DLClearTesseractOCR(int InstanceID);
Return values
Delphi has no return value; DLL and ActiveX return 1 after clearing the owned provider
Remarks
The callback is cleared only when OnOCRPage still refers to the owned provider
If an application assigned a different callback after configuring Tesseract, that callback is retained and its object is not freed
Calling this method repeatedly is safe; instance destruction performs the same owned-provider cleanup
Existing OCR text layers in the document are retained