Foxit PDF SDK
foxit::addon::ocr::OCRCallback Class Referenceabstract

Public Member Functions

virtual bool NeedToCancelNow (const wchar_t *info)=0
 A callback function used to cancel current OCR progress. More...
 

Detailed Description

This class represents a callback object to cancel OCR progress. All the pure virtual functions in this class are used as callback functions and should be implemented by user. An implemented OCRCallback object can be set by function OCREngine::SetOCRCallback.

Member Function Documentation

◆ NeedToCancelNow()

virtual bool foxit::addon::ocr::OCRCallback::NeedToCancelNow ( const wchar_t *  info)
pure virtual

A callback function used to cancel current OCR progress.

This function cannot be used to cancel OCR conversion.

Parameters
[in]infoA string that describes the OCR progress information.
Returns
true means to cancel progress, while false means not.